Skip to content

Commit dbe06e7

Browse files
committed
Refactor equality check
1 parent ef8483a commit dbe06e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Integrations/ShopifyConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ private function hasGraphQLErrors(array $responseJson, bool $isThrottled): bool
5555
/** @var array $bulkOperationUserErrors */
5656
$bulkOperationUserErrors = data_get($responseJson, 'data.bulkOperationRunQuery.userErrors', []);
5757

58-
return ($hasErrors && !$isThrottled) || count($bulkOperationUserErrors) > 0;
58+
return ($hasErrors && !$isThrottled) || $bulkOperationUserErrors !== [];
5959
}
6060
}

0 commit comments

Comments
 (0)