From 11f78325e637cff01aad6e52d13f757052511965 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Sun, 8 Mar 2020 00:10:23 +0800 Subject: [PATCH] Sort return without duplicate condition --- src/you_get/util/log.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/you_get/util/log.py b/src/you_get/util/log.py index 67b26b78..81fd1bf5 100644 --- a/src/you_get/util/log.py +++ b/src/you_get/util/log.py @@ -99,6 +99,4 @@ def wtf(message, exit_code=1): def yes_or_no(message): ans = str(input('%s (y/N) ' % message)).lower().strip() - if ans == 'y': - return True - return False + return ans == 'y'