1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 19:09:44 +00:00

handle empty list

This commit is contained in:
deadc0de6
2021-11-19 11:55:45 +01:00
parent 050d61d819
commit d40e7819dc

View File

@@ -273,6 +273,8 @@ def must_ignore(paths, ignores, debug=False):
def uniq_list(a_list):
"""unique elements of a list while preserving order"""
new = []
if not a_list:
return new
for elem in a_list:
if elem not in new:
new.append(elem)