diff options
| author | Jack Nagel | 2014-09-18 21:48:54 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-09-18 21:56:48 -0500 |
| commit | 590069d269de0d6b424e8107a0c6ce87f75f4171 (patch) | |
| tree | 945ee68c5956e01ec7ae22720e8b66d1bb2cb42d /Library/Homebrew/cmd | |
| parent | 6b27f512d062bc9b748e861ed37e32d64aba8412 (diff) | |
| download | homebrew-590069d269de0d6b424e8107a0c6ce87f75f4171.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.rb | 4 |
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? |
