diff options
| author | Jack Nagel | 2014-09-18 21:48:54 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-09-18 21:56:48 -0500 |
| commit | fef8b0871de845dd7e9f5f6a40dbcda7620a4960 (patch) | |
| tree | 0aa5e60cb04d5e981595601fea16be2af000a848 /Library | |
| parent | 2f74d86fcc541f0e747446179d1df3a54d495ccf (diff) | |
| download | brew-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')
| -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? |
