Skip to content

Commit a5c3eb1

Browse files
committed
Fix max retry
1 parent 042711d commit a5c3eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/optimizely/cmab/cmab_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def fetch_decision(rule_id, user_id, attributes, cmab_uuid, timeout: MAX_WAIT_TI
7373
}]
7474
}
7575

76-
if @retry_config && @retry_config.max_retries.to_i > 0
76+
if @retry_config && @retry_config.max_retries.to_i.positive?
7777
_do_fetch_with_retry(url, request_body, @retry_config, timeout)
7878
else
7979
_do_fetch(url, request_body, timeout)

0 commit comments

Comments
 (0)