Optimize code

This commit is contained in:
croneter 2018-09-15 15:16:59 +02:00
parent 0147e29cef
commit b5524d1206

View file

@ -139,10 +139,7 @@ class UserSelectWindow(kodigui.BaseWindow):
def pinEntryClicked(self, controlID):
item = self.userList.getSelectedItem()
if item.getProperty('editing.pin'):
pin = item.getProperty('editing.pin')
else:
pin = ''
pin = item.getProperty('editing.pin') or ''
if len(pin) > 3:
return