Fix len-as-condition pylint error

This commit is contained in:
Philipp Hörist 2018-09-16 01:19:09 +02:00
parent 8d9fe9e2e1
commit 50e44543f3
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ class AddNewContactWindow(Gtk.ApplicationWindow):
type_ = model[iter_][2]
model = self.protocol_jid_combobox.get_model()
model.clear()
if len(self.agents[type_]):
if self.agents[type_]:
for jid_ in self.agents[type_]:
model.append([jid_])
self.protocol_jid_combobox.set_active(0)