Replace if statement with if expression

This commit is contained in:
Brian Pepple 2020-09-27 11:24:14 -04:00 committed by Odd Stråbø
commit 29f9956b61
2 changed files with 2 additions and 8 deletions

View file

@ -51,10 +51,7 @@ class LogHandler(logging.StreamHandler):
self.mask_info = settings('maskInfo.bool')
if kodi_version() > 18:
self.level = xbmc.LOGINFO
else:
self.level = xbmc.LOGNOTICE
self.level = xbmc.LOGINFO if kodi_version() > 18 else xbmc.LOGNOTICE
def emit(self, record):