Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
263d095c
Commit
263d095c
authored
Jul 12, 2017
by
Dave Machado
Browse files
Use standard error reporting for duplicate links
parent
17a0caf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/validate_links.rb
View file @
263d095c
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment