We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdc0f98 commit 31c69e2Copy full SHA for 31c69e2
cmd/readmevalidation/contributors.go
@@ -343,8 +343,10 @@ func validateContributorRelativeUrls(contributors map[string]contributorProfile)
343
if con.frontmatter.AvatarURL == nil {
344
continue
345
}
346
- if isRelativeURL := strings.HasPrefix(*con.frontmatter.AvatarURL, ".") ||
347
- strings.HasPrefix(*con.frontmatter.AvatarURL, "/"); !isRelativeURL {
+
+ isRelativeURL := strings.HasPrefix(*con.frontmatter.AvatarURL, ".") ||
348
+ strings.HasPrefix(*con.frontmatter.AvatarURL, "/")
349
+ if !isRelativeURL {
350
351
352
0 commit comments