Skip to content

Commit 1f54b1a

Browse files
committed
Remove unneeded variable
1 parent 8043b56 commit 1f54b1a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd2/argparse_completer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,9 @@ def update_mutex_groups(arg_action: argparse.Action) -> bool:
185185

186186
# Check if the group this action belongs to has already been completed
187187
if group in completed_mutex_groups:
188-
group_action = completed_mutex_groups[group]
189188
error = style_error("\nError: argument {}: not allowed with argument {}\n".
190189
format(argparse._get_action_name(arg_action),
191-
argparse._get_action_name(group_action)))
190+
argparse._get_action_name(completed_mutex_groups[group])))
192191
self._print_message(error)
193192
return False
194193

0 commit comments

Comments
 (0)