Skip to content

Commit

Permalink
[yegor256#304] fix code style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mbao01 committed Jan 6, 2022
1 parent f67a102 commit 3fc40cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects/exec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def run
out += stdout.read_nonblock(8) until stdout.eof?
err = stderr.read
code = thr.value.exitstatus
code = 1 if !thr.value.exited?
code = 1 unless thr.value.exited?
unless code.zero?
raise Error.new(
code, "#{c} [#{code}]:\n#{err}\n#{out}"
Expand Down

0 comments on commit 3fc40cb

Please sign in to comment.