Removed reassigned var
i was already declared by the parent loop, removed reassignment
This commit is contained in:
@@ -518,9 +518,10 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut):
|
||||
g = eos.db.getGroup(int(itemChargeGroup), eager=("items.icon", "items.attributes"))
|
||||
if g is None:
|
||||
continue
|
||||
for i in g.items:
|
||||
if i.published and self.isValidCharge(i):
|
||||
validCharges.add(i)
|
||||
for singleItem in g.items:
|
||||
if singleItem.published and self.isValidCharge(singleItem):
|
||||
validCharges.add(singleItem)
|
||||
|
||||
|
||||
return validCharges
|
||||
|
||||
|
||||
Reference in New Issue
Block a user