From cd7430dc1d86922deec43921ec2acda291ca0a98 Mon Sep 17 00:00:00 2001 From: Tiko7454 Date: Thu, 27 Jul 2023 20:09:35 +0400 Subject: [PATCH] fixed indentation issue --- slither/solc_parsing/declarations/function.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/slither/solc_parsing/declarations/function.py b/slither/solc_parsing/declarations/function.py index bea1de9be9..3d21f3b4ff 100644 --- a/slither/solc_parsing/declarations/function.py +++ b/slither/solc_parsing/declarations/function.py @@ -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: