From 660266f7b2493752dab573f761bedede70f50195 Mon Sep 17 00:00:00 2001 From: Sourcery AI Date: Tue, 18 Jul 2023 13:33:43 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- python_app_template/main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/python_app_template/main.py b/python_app_template/main.py index f523825..e1a8f3e 100644 --- a/python_app_template/main.py +++ b/python_app_template/main.py @@ -12,10 +12,7 @@ def do_something(x: bool) -> str: Returns: A string that depends on the argument. """ - if x: - return "hello" - else: - return "world" + return "hello" if x else "world" # do_something(5) # should make type error