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

View file

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