mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
Use standard error reporting for duplicate links
This commit is contained in:
@@ -21,7 +21,7 @@ fails = []
|
||||
dup = links.select{|element| links.count(element) > 1}
|
||||
if dup.uniq.length > 0
|
||||
dup.uniq.each do |e|
|
||||
fails.push("Duplicate link: #{e}")
|
||||
fails.push("(DUP): #{e}")
|
||||
end
|
||||
end
|
||||
# Remove any duplicates from array
|
||||
|
||||
Reference in New Issue
Block a user