Skip to content

Commit

Permalink
Merge pull request #10 from amatsuda/warning
Browse files Browse the repository at this point in the history
warning: assigned but unused variable - tries
  • Loading branch information
nfedyashev committed Sep 5, 2014
2 parents 014cd0b + 11f2276 commit 9c335d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/retryable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def retryable(options = {}, &block)
rescue *on_exception => exception
raise unless Retryable.enabled?
raise unless exception.message =~ opts[:matching]
raise if retries+1 >= opts[:tries]
raise if retries+1 >= tries

# Interrupt Exception could be raised while sleeping
begin
Expand Down

0 comments on commit 9c335d5

Please sign in to comment.