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
b62683f9
Unverified
Commit
b62683f9
authored
Jan 13, 2022
by
Matheus Felipe
Browse files
Show one duplicate link per line
parent
50ad807e
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/validate/links.py
View file @
b62683f9
...
...
@@ -216,7 +216,10 @@ if __name__ == '__main__':
has_duplicate_link
,
duplicates_links
=
check_duplicate_links
(
links
)
if
has_duplicate_link
:
print
(
f
'Found duplicate links:
{
duplicates_links
}
'
)
print
(
f
'Found duplicate links:'
)
for
duplicate_link
in
duplicates_links
:
print
(
duplicate_link
)
sys
.
exit
(
1
)
else
:
print
(
'No duplicate links.'
)
...
...
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