Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir committed Aug 14, 2024
1 parent 1e7f067 commit 7383e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ func GetToolVersionCallback(toolName, version string) func() (string, error) {
if toolDetails.Version == "" {
msg := fmt.Sprintf("something went wrong, expected version string but got empty string for GET `%v` response `%v`", updateURL, string(body))
if err == nil {
return "", errorutil.New(msg)
return "", errorutil.New("%s", msg)
}
return "", errorutil.NewWithErr(err).Msgf(msg)
return "", errorutil.NewWithErr(err).Msgf("%s", msg)
}
return toolDetails.Version, nil
}
Expand Down

0 comments on commit 7383e38

Please sign in to comment.