Skip to content

Commit 7ed5eb6

Browse files
committed
fixed undefined variable with strategy = none
1 parent 36f8ba3 commit 7ed5eb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

grape/cli/prune.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def main():
124124
loop_algorithm = args.strategy
125125
if loop_algorithm != "none":
126126
grammar = add_loops(reduced_grammar, dsl, loop_algorithm)
127+
else:
128+
grammar = reduced_grammar
127129

128130
types.check_automaton(grammar, dsl, type_req)
129131
args_type = types.arguments(type_req)

0 commit comments

Comments
 (0)