diff options
| author | 2023-07-25 04:38:01 +0000 | |
|---|---|---|
| committer | 2023-07-25 04:38:01 +0000 | |
| commit | e47db36c1143c688d82a6ae0794cf0c8c016e1c6 (patch) | |
| tree | 9527c3c4883259bf2ae3254a65fb7443248ae37f | |
| parent | d304910159e6824dae201e4e4aeafa0ff7984292 (diff) | |
| download | TRPGNivis-e47db36c1143c688d82a6ae0794cf0c8c016e1c6.tar.gz TRPGNivis-e47db36c1143c688d82a6ae0794cf0c8c016e1c6.zip | |
'Refactored by Sourcery'sourcery/mkdocs
| -rw-r--r-- | tests/if-else.py | 3 |
1 files changed, 1 insertions, 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) |
