diff options
Diffstat (limited to 'lib/bundler/retry.rb')
-rw-r--r-- | lib/bundler/retry.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/retry.rb b/lib/bundler/retry.rb index 7f6da8a58e..85bff78807 100644 --- a/lib/bundler/retry.rb +++ b/lib/bundler/retry.rb @@ -15,10 +15,10 @@ module Bundler end def initialize(name, exceptions = nil, retries = self.class.default_retries) - @name = name - @retries = retries + @name = name + @retries = retries @exceptions = Array(exceptions) || [] - @total_runs = @retries + 1 # will run once, then upto attempts.times + @total_runs = @retries + 1 # will run once, then upto attempts.times end def attempt(&block) |