Skip to content

Commit

Permalink
Avoid casting the result of fetchLocation (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
massongit committed Jul 23, 2022
1 parent fce73ce commit da1a15c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/fetch.go
Expand Up @@ -52,5 +52,5 @@ func FetchLatestVersion(ctx context.Context) (version string, err error) {
if versionMatched := versionPattern.FindString(*body); versionMatched != "" {
return versionMatched, nil
}
return "", fmt.Errorf("not found version patterns parsing GH response: %s", string(body))
return "", fmt.Errorf("not found version patterns parsing GH response: %s", *body)
}

0 comments on commit da1a15c

Please sign in to comment.