Fix len-as-condition pylint error

This commit is contained in:
Philipp Hörist 2018-09-16 01:19:09 +02:00 committed by Philipp Hörist
parent eba6c92290
commit 4cf7d20600
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)