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)
|
def `(cmd)
|
||||||
out = super
|
out = super
|
||||||
if $? && !$?.success?
|
unless $?.success?
|
||||||
$stderr.puts out
|
$stderr.puts(out) unless out.empty?
|
||||||
raise ErrorDuringExecution.new(cmd)
|
raise ErrorDuringExecution.new(cmd)
|
||||||
end
|
end
|
||||||
ohai(cmd, out) if ARGV.verbose?
|
ohai(cmd, out) if ARGV.verbose?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user