Skip to content

Commit fc7140d

Browse files
committed
fix lint
1 parent 2ebb3f7 commit fc7140d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/optimizely/cmab/cmab_client.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,10 @@ def _do_fetch_with_retry(url, request_body, retry_config, timeout)
150150
# Returns:
151151
# The variation ID from the response.
152152

153-
backoff = retry_config.retry_delay
154-
last_error = nil
155-
156153
attempt = 0
157154
backoff = @retry_config.retry_delay
158155
begin
159-
return _do_fetch(url, request_body, timeout)
156+
_do_fetch(url, request_body, timeout)
160157
rescue => e
161158
if attempt < @retry_config.max_retries
162159
@logger.log(Logger::INFO, "Retrying CMAB request (attempt #{attempt + 1}) after #{backoff} seconds...")

0 commit comments

Comments
 (0)