Skip to content

Commit 31c69e2

Browse files
committed
refactor: make code easier to read
1 parent fdc0f98 commit 31c69e2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/readmevalidation/contributors.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,10 @@ func validateContributorRelativeUrls(contributors map[string]contributorProfile)
343343
if con.frontmatter.AvatarURL == nil {
344344
continue
345345
}
346-
if isRelativeURL := strings.HasPrefix(*con.frontmatter.AvatarURL, ".") ||
347-
strings.HasPrefix(*con.frontmatter.AvatarURL, "/"); !isRelativeURL {
346+
347+
isRelativeURL := strings.HasPrefix(*con.frontmatter.AvatarURL, ".") ||
348+
strings.HasPrefix(*con.frontmatter.AvatarURL, "/")
349+
if !isRelativeURL {
348350
continue
349351
}
350352

0 commit comments

Comments
 (0)