Skip to content

Commit

Permalink
fixed indentation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiko7454 committed Jul 27, 2023
1 parent 8ef870b commit cd7430d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions slither/solc_parsing/declarations/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -1470,8 +1470,11 @@ def __inject_condition_expression_from_conditional_node(self, node: Node) -> Nod
self.__link_node_immediately_before(temp_var_node_pre_loop, begin_loop_node)
else:
self.__link_node_immediately_before(temp_var_node, if_loop_node)
node.add_expression(Identifier(temp_var), bypass_verif_empty=True)
return temp_var_node
else:
raise TypeError(f'Unknown conditional type {node.type}')

node.add_expression(Identifier(temp_var), bypass_verif_empty=True)
return temp_var_node


def _rewrite_ternary_as_if_else(self) -> bool:
Expand Down

0 comments on commit cd7430d

Please sign in to comment.