Skip cleanup if there's only one single file #104582
@ -103,7 +103,7 @@ def files_to_clean_file_names_for_sockets(files, sockets):
|
||||
socket_tags = socket[1]
|
||||
all_tags.update(socket_tags)
|
||||
|
||||
while names_to_tag_lists and len(names_to_tag_lists) > 1:
|
||||
while len(names_to_tag_lists) > 1:
|
||||
Walles marked this conversation as resolved
Outdated
|
||||
something_changed = False
|
||||
|
||||
# Common prefixes / suffixes provide zero information about what file
|
||||
|
Loading…
Reference in New Issue
Block a user
I think this is testing for the same thing twice? This can't be None, and empty dictionaries return false.
Let's see.
The first part before
and
is true if the list is at least 1 long.The second part after
and
is true if the list is at least 2 long.And as you say, since the list is initialized to empty higher up and thus can't be
None
I believe you are right!I'll fix this.