From e47db36c1143c688d82a6ae0794cf0c8c016e1c6 Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Tue, 25 Jul 2023 04:38:01 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- tests/if-else.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/if-else.py b/tests/if-else.py index 933d567..f97322a 100644 --- a/tests/if-else.py +++ b/tests/if-else.py @@ -60,8 +60,7 @@ def execute_ast(ast, environment): elif ast.operator == '>': return left > right elif isinstance(ast, IfNode): - condition = execute_ast(ast.condition, environment) - if condition: + if condition := execute_ast(ast.condition, environment): execute_ast(ast.body, environment) elif isinstance(ast, ReplyNode): message = ast.message.format(**environment)