From 2849b3767027c4ca7db3d88e1c8fe136999d5fe0 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Tue, 4 Jul 2023 19:52:55 +0100 Subject: [PATCH] remove redundant if test --- examples/dsl/__main__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/dsl/__main__.py b/examples/dsl/__main__.py index b95debc..425c10a 100644 --- a/examples/dsl/__main__.py +++ b/examples/dsl/__main__.py @@ -63,8 +63,6 @@ class Parser: def interactive_mode(parser): while cmd := input("Please enter command (Press to exit)\n"): - if not cmd: - break if res := parser.parse((cmd,)): print(res)