fixed indentation issue

pull/2069/head
Tiko7454 1 year ago
parent 8ef870bd9d
commit cd7430dc1d
  1. 7
      slither/solc_parsing/declarations/function.py

@ -1470,8 +1470,11 @@ class FunctionSolc(CallerContextExpression):
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:

Loading…
Cancel
Save