Skip to content

Commit

Permalink
one more PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Divine committed Jan 7, 2025
1 parent 70df29b commit 1584791
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions token-registry/githubify.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ func localImageToGitHub(local string) string {
// isLocalImage returns true if an image URI is meant for a local file in
// the "token-registry/img" directory.
func isLocalImage(maybeLocal *string) bool {
if maybeLocal == nil {
return false
}

Check warning on line 31 in token-registry/githubify.go

View check run for this annotation

Codecov / codecov/patch

token-registry/githubify.go#L30-L31

Added lines #L30 - L31 were not covered by tests
return strings.HasPrefix(*maybeLocal, "./img")
}

Expand Down

0 comments on commit 1584791

Please sign in to comment.