Simplify boolean

This commit is contained in:
Brian Pepple 2020-09-27 11:10:51 -04:00 committed by Odd Stråbø
parent ba164d1358
commit b110f1cf13
9 changed files with 9 additions and 9 deletions

View file

@ -40,7 +40,7 @@ class LoginManual(xbmcgui.WindowXMLDialog):
setattr(self, key, value)
def is_logged_in(self):
return True if self._user else False
return bool(self._user)
def get_user(self):
return self._user