aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNick LaMuro <nicklamuro@gmail.com>2016-07-25 23:45:42 -0500
committerNick LaMuro <nicklamuro@gmail.com>2016-07-25 23:45:42 -0500
commit8b59481c9fb11d8273ff7606593682dfeabd7dd9 (patch)
treee64b2120fc77b47af8a33b0e34217eaa01a8fc61 /lib
parent2ac26bc88ba30b28aba6e11c9b2d04cdb0276a25 (diff)
downloadbundler-8b59481c9fb11d8273ff7606593682dfeabd7dd9.tar.gz
Removes extra if in Bundler::Retry interpolation
This particular if statement will never return false because it always preceded by `return true unless name`, so it will always be true if we reach that line.
Diffstat (limited to 'lib')
-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 fb79dabf..a7a72fee 100644
--- a/lib/bundler/retry.rb
+++ b/lib/bundler/retry.rb
@@ -46,7 +46,7 @@ module Bundler
raise e if last_attempt? || @exceptions.any? {|k| e.is_a?(k) }
return true unless name
Bundler.ui.info "" unless Bundler.ui.debug? # Add new line incase dots preceded this
- Bundler.ui.warn "Retrying#{" #{name}" if name} due to error (#{current_run.next}/#{total_runs}): #{e.class} #{e.message}", Bundler.ui.debug?
+ Bundler.ui.warn "Retrying #{name} due to error (#{current_run.next}/#{total_runs}): #{e.class} #{e.message}", Bundler.ui.debug?
end
def keep_trying?