Skip to content

Commit

Permalink
Fix possibly using variable before assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
akosthekiss authored and renatahodovan committed Aug 26, 2024
1 parent e4abc96 commit df785fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion picireny/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2016-2023 Renata Hodovan, Akos Kiss.
# Copyright (c) 2016-2024 Renata Hodovan, Akos Kiss.
#
# Licensed under the BSD 3-Clause License
# <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
Expand Down Expand Up @@ -330,6 +330,8 @@ def execute():
elif args.builder == 'srcml':
hdd_tree = build_with_srcml(args.src, language=args.srcml_language)
unparse_with_whitespace = False
else:
assert False, f'Unknown builder: {args.builder}'

hdd_tree = reduce(hdd_tree,
hddmin=args.hddmin,
Expand Down

0 comments on commit df785fc

Please sign in to comment.