Skip to content

Commit

Permalink
renoved redundant check in utils.get_constants_from_arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
hweichelt committed Apr 25, 2024
1 parent 4ca3fed commit 934981d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clingexplaid/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_constants_from_arguments(argument_vector: List[str]) -> Dict[str, str]:
for element in argument_vector:
if next_constant:
result = re.search(r"(.*)=(.*)", element)
if result is None or len(result.groups()) == 0:
if result is None:
continue
constants[result.group(1)] = result.group(2)
next_constant = False
Expand Down

0 comments on commit 934981d

Please sign in to comment.