remove duplicate urls
This commit is contained in:
1 parent
2c40b78cce
commit
d4ce4252f6
1 file changed
+1
-1
+1
-1
@@ -7,7 +7,7 @@ def npm_create_package_lock_file(package):
|
||||
|
||||
|
||||
def get_all_urls_packages():
|
||||
return findall("https://.+.tgz", open("package-lock.json", "rt").read())
|
||||
return list(dict.fromkeys(findall("https://.+.tgz", open("package-lock.json", "rt").read())))
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user