summaryrefslogtreecommitdiff
path: root/lib/bundler/retry.rb
diff options
context:
space:
mode:
authorAntonio Scandurra <as_cii@hotmail.it>2014-03-21 09:12:35 +0100
committerAntonio Scandurra <as_cii@hotmail.it>2014-03-21 09:35:33 +0100
commit259012d7bdf90e362122122b1f090a8af8070b32 (patch)
treee2ea3eb4177d19576a90ade5708c0fb963bc7844 /lib/bundler/retry.rb
parent4d29adeee6e000e309674ee38ce3c027cec3534d (diff)
downloadbundler-259012d7bdf90e362122122b1f090a8af8070b32.tar.gz
Avoid threequals operator where possible
Diffstat (limited to 'lib/bundler/retry.rb')
-rw-r--r--lib/bundler/retry.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/retry.rb b/lib/bundler/retry.rb
index ddcdb2b165..ea4d7577d9 100644
--- a/lib/bundler/retry.rb
+++ b/lib/bundler/retry.rb
@@ -42,7 +42,7 @@ module Bundler
def fail(e)
@failed = true
- raise e if last_attempt? || @exceptions.any?{|k| k === e }
+ raise e if last_attempt? || @exceptions.any?{ |k| e.is_a?(k) }
return true unless name
Bundler.ui.warn "Retrying#{" #{name}" if name} due to error (#{current_run.next}/#{total_runs}): #{e.class} #{e.message}"
end