mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
remove pointless if
This commit is contained in:
parent
1480459019
commit
da81704b74
1 changed files with 7 additions and 8 deletions
|
@ -193,14 +193,13 @@ class EditTrackersDialog:
|
|||
# Check if there are any entries
|
||||
duplicate = False
|
||||
highest_tier = -1
|
||||
if self.liststore.iter_n_children(None) > 0:
|
||||
for row in self.liststore:
|
||||
tier = row[0]
|
||||
if tier > highest_tier:
|
||||
highest_tier = tier
|
||||
if tracker == row[1]:
|
||||
duplicate = True
|
||||
break
|
||||
for row in self.liststore:
|
||||
tier = row[0]
|
||||
if tier > highest_tier:
|
||||
highest_tier = tier
|
||||
if tracker == row[1]:
|
||||
duplicate = True
|
||||
break
|
||||
|
||||
# If not a duplicate, then add it to the list
|
||||
if not duplicate:
|
||||
|
|
Loading…
Add table
Reference in a new issue