Skip to content

Commit

Permalink
Fixing number of retries constraint.
Browse files Browse the repository at this point in the history
  • Loading branch information
message-dimke committed Oct 22, 2024
1 parent 007b14f commit 342f417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CommerceIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static function handle_create( $attempt = 0 ): array {

return $response;
} catch ( PinterestApiException $e ) {
if ( self::MAX_RETRIES < $attempt ) {
if ( self::MAX_RETRIES === $attempt ) {
Logger::log(
sprintf(
/* translators: 1: Pinterest internal code, 2: Pinterest response message. */
Expand Down

0 comments on commit 342f417

Please sign in to comment.