Simplify conditional into return statement

This commit is contained in:
Brian Pepple 2020-09-27 11:34:21 -04:00 committed by Odd Stråbø
parent 0345106427
commit cbaa41d242
1 changed files with 1 additions and 4 deletions

View File

@ -185,10 +185,7 @@ def should_stop():
LOG.info("exiiiiitttinggg")
return True
if not window('jellyfin_online.bool'):
return True
return False
return not window('jellyfin_online.bool')
def get_screensaver():