remove pointless if
This commit is contained in:
parent
1480459019
commit
da81704b74
|
@ -193,14 +193,13 @@ class EditTrackersDialog:
|
||||||
# Check if there are any entries
|
# Check if there are any entries
|
||||||
duplicate = False
|
duplicate = False
|
||||||
highest_tier = -1
|
highest_tier = -1
|
||||||
if self.liststore.iter_n_children(None) > 0:
|
for row in self.liststore:
|
||||||
for row in self.liststore:
|
tier = row[0]
|
||||||
tier = row[0]
|
if tier > highest_tier:
|
||||||
if tier > highest_tier:
|
highest_tier = tier
|
||||||
highest_tier = tier
|
if tracker == row[1]:
|
||||||
if tracker == row[1]:
|
duplicate = True
|
||||||
duplicate = True
|
break
|
||||||
break
|
|
||||||
|
|
||||||
# If not a duplicate, then add it to the list
|
# If not a duplicate, then add it to the list
|
||||||
if not duplicate:
|
if not duplicate:
|
||||||
|
|
Loading…
Reference in New Issue