From 50e44543f3d4254fa2952c22b2a1e51eca9ff6fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 16 Sep 2018 01:19:09 +0200 Subject: [PATCH] Fix len-as-condition pylint error --- gajim/gtk/add_contact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gajim/gtk/add_contact.py b/gajim/gtk/add_contact.py index 4316a8fed..f0293e913 100644 --- a/gajim/gtk/add_contact.py +++ b/gajim/gtk/add_contact.py @@ -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)