Commit 50e44543 authored by Philipp Hörist's avatar Philipp Hörist

Fix len-as-condition pylint error

parent 8d9fe9e2
......@@ -358,7 +358,7 @@ def on_protocol_combobox_changed(self, widget):
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment