mirror of
https://github.com/public-apis/public-apis.git
synced 2025-05-10 07:36:47 +02:00
Use standard error reporting for duplicate links
This commit is contained in:
parent
17a0caf749
commit
263d095c65
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ fails = []
|
||||||
dup = links.select{|element| links.count(element) > 1}
|
dup = links.select{|element| links.count(element) > 1}
|
||||||
if dup.uniq.length > 0
|
if dup.uniq.length > 0
|
||||||
dup.uniq.each do |e|
|
dup.uniq.each do |e|
|
||||||
fails.push("Duplicate link: #{e}")
|
fails.push("(DUP): #{e}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# Remove any duplicates from array
|
# Remove any duplicates from array
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue