aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/gem_helper.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2015-11-26 12:39:25 -0600
committerSamuel Giddins <segiddins@segiddins.me>2015-11-26 12:39:25 -0600
commit404903c84e85004f1d451bf75a6b534c87efb089 (patch)
tree1354131080f43015b1416574a07e9a9e988c6ae8 /lib/bundler/gem_helper.rb
parent29eaf79e9c1b6c4e73256ad02cbd502577e6f454 (diff)
downloadbundler-404903c84e85004f1d451bf75a6b534c87efb089.tar.gz
[RuboCop] Enable Style/IfUnlessModifier
Diffstat (limited to 'lib/bundler/gem_helper.rb')
-rw-r--r--lib/bundler/gem_helper.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/bundler/gem_helper.rb b/lib/bundler/gem_helper.rb
index 74db0669..d4681945 100644
--- a/lib/bundler/gem_helper.rb
+++ b/lib/bundler/gem_helper.rb
@@ -177,9 +177,7 @@ module Bundler
Bundler.ui.debug(cmd)
SharedHelpers.chdir(base) do
outbuf = `#{cmd}`
- if $? == 0
- block.call(outbuf) if block
- end
+ block.call(outbuf) if $? == 0 && block
end
[outbuf, $?]
end