Update expression_manipulations.py

pull/1501/head
Feist Josselin 2 years ago committed by GitHub
parent b68f4c17a7
commit 254f02b374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      slither/utils/expression_manipulations.py

@ -135,6 +135,7 @@ class SplitTernaryExpression:
) -> None:
for next_expr in expression.expressions:
# TODO: can we get rid of `NoneType` expressions in `TupleExpression`?
# montyly: this might happen with unnamed tuple (ex: (,,,) = f()), but it needs to be checked
if next_expr:
if isinstance(next_expr, IndexAccess):
self.convert_index_access(next_expr, true_expression, false_expression)

Loading…
Cancel
Save