aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-09-18 21:48:54 -0500
committerJack Nagel2014-09-18 21:56:48 -0500
commitfef8b0871de845dd7e9f5f6a40dbcda7620a4960 (patch)
tree0aa5e60cb04d5e981595601fea16be2af000a848 /Library/Homebrew/cmd
parent2f74d86fcc541f0e747446179d1df3a54d495ccf (diff)
downloadbrew-fef8b0871de845dd7e9f5f6a40dbcda7620a4960.tar.bz2
Remove obsolete nil guard
This was added in 3a7a3619f7016c75c3e53e944221bf7f6354a63b to make the tests pass, but this method is now stubbed out in the tests, so we can assume $? will be non-nil.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/update.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index 96d3fdd09..6e065b199 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -220,8 +220,8 @@ class Updater
def `(cmd)
out = super
- if $? && !$?.success?
- $stderr.puts out
+ unless $?.success?
+ $stderr.puts(out) unless out.empty?
raise ErrorDuringExecution.new(cmd)
end
ohai(cmd, out) if ARGV.verbose?