Browse Source

Fix another dict check-key then add antipattern

pull/121/head
Adam Johnson 6 years ago
parent
commit
1f9a872afc
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 6
      korman/properties/modifiers/__init__.py

6
korman/properties/modifiers/__init__.py

@ -88,8 +88,6 @@ def modifier_mapping():
label = label[:-len(category)-1]
tup = (pl_id, label, description, icon, i)
if category not in d:
d[category] = [tup]
else:
d[category].append(tup)
d_cat = d.setdefault(category, [])
d_cat.append(tup)
return d

Loading…
Cancel
Save