Skip to content

Commit

Permalink
fixup! csfilter-kfp: install a simple man page
Browse files Browse the repository at this point in the history
Simplify the call to `isatty()`.
  • Loading branch information
kdudka committed Aug 29, 2024
1 parent f44a927 commit 643b229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/csfilter-kfp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def main():
help="file to store all excluded findings to")

parser.add_argument(
"--json-output", action="store_true", default=(not os.isatty(sys.stdout.fileno())),
"--json-output", action="store_true", default=(not sys.stdout.isatty()),
help="produce JSON output (default if stdout is not connected to a terminal)")

parser.add_argument(
Expand Down

0 comments on commit 643b229

Please sign in to comment.