Skip to content

Commit

Permalink
Merge pull request #5 from HydroRoll-Team/sourcery/mkdocs
Browse files Browse the repository at this point in the history
add docs (Sourcery refactored)
  • Loading branch information
HsiangNianian authored Jul 25, 2023
2 parents d304910 + e47db36 commit 7ef3b60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/if-else.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7ef3b60

Please sign in to comment.