Skip to content

Commit

Permalink
return early if expression is None
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush committed May 26, 2022
1 parent 8ac32a7 commit e298b85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions slither/utils/expression_manipulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ def apply_copy(
def copy_expression(
self, expression: Expression, true_expression: Expression, false_expression: Expression
) -> None:
# case of unused
# (, var) = func()
if not expression:
return

if self.condition:
return

Expand Down

0 comments on commit e298b85

Please sign in to comment.