Skip to content

Commit

Permalink
Fix ruff-format pre-commit failures
Browse files Browse the repository at this point in the history
  • Loading branch information
timwoj committed Dec 3, 2024
1 parent 46e772f commit 6ce8020
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions zeekclient/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,15 @@ def cmd_get_config(args):

config = Configuration.from_brokertype(res.data)

with open(
args.filename,
"w",
encoding="utf-8",
) if args.filename and args.filename != "-" else STDOUT as hdl:
with (
open(
args.filename,
"w",
encoding="utf-8",
)
if args.filename and args.filename != "-"
else STDOUT as hdl
):
if args.as_json:
hdl.write(json_dumps(config.to_json_data()) + "\n")
else:
Expand Down

0 comments on commit 6ce8020

Please sign in to comment.