Skip to content

Commit

Permalink
Improve ternary conversion (close #98)
Browse files Browse the repository at this point in the history
  • Loading branch information
montyly committed Dec 11, 2018
1 parent 7f02976 commit f804da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slither/utils/expression_manipulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def copy_expression(self, expression, true_expression, false_expression):
if isinstance(expression, ConditionalExpression):
raise Exception('Nested ternary operator not handled')

if isinstance(expression, (Literal, Identifier, IndexAccess, NewArray)):
if isinstance(expression, (Literal, Identifier, IndexAccess, NewArray, NewContract)):
return None

# case of lib
Expand Down

0 comments on commit f804da4

Please sign in to comment.