Skip to content

Commit

Permalink
cli: Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Sep 12, 2021
1 parent 8dc0f06 commit 55cd45f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/interp/fq.jq
Original file line number Diff line number Diff line change
Expand Up @@ -442,13 +442,13 @@ def _main:
end
)
; # finally
( if _input_io_errors != null then
( if _input_io_errors then
null | halt_error(_exit_code_input_io_error)
end
| if _input_decode_errors != null then
| if _input_decode_errors then
null | halt_error(_exit_code_input_decode_error)
end
| if _cli_last_expr_error != null then
| if _cli_last_expr_error then
null | halt_error(_exit_code_expr_error)
end
)
Expand Down

0 comments on commit 55cd45f

Please sign in to comment.