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.
This commit is contained in:
parent
2f74d86fcc
commit
fef8b0871d
@ -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?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user