mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-04 07:16:12 +00:00
Simplify boolean
This commit is contained in:
parent
ba164d1358
commit
b110f1cf13
9 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue