Sort return without duplicate condition

This commit is contained in:
Ivan Tham 2020-03-08 00:10:23 +08:00 committed by GitHub
parent 8b7566eeb3
commit 11f78325e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'