mirror of
https://github.com/public-apis/public-apis.git
synced 2025-05-10 15:46:48 +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}
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue