Skip to content

Commit

Permalink
Fix: go-lint fixes for go tools 0.24.0 update
Browse files Browse the repository at this point in the history
Related PR: #4316
  • Loading branch information
vyasgun authored and praveenkumar committed Aug 13, 2024
1 parent ab63fcd commit 8a88ac7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/crc/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func runPrerun(cmd *cobra.Command) error {
logging.InitLogrus(logFile)

for _, str := range defaultVersion().lines() {
logging.Debugf(str)
logging.Debugf("%s", str)
}
return nil
}
Expand Down Expand Up @@ -138,7 +138,7 @@ func setProxyDefaults() error {
}

if proxyConfig.IsEnabled() {
logging.Debugf(proxyConfig.String())
logging.Debugf("%s", proxyConfig.String())
proxyConfig.ApplyToEnvironment()
}
return nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/crc/input/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func PromptUserForYesOrNo(message string, force bool) bool {
return false
}
var response string
fmt.Printf(message + "? [y/N]: ")
fmt.Printf("%s? [y/N]: ", message)
_, _ = fmt.Scanf("%s", &response)

return strings.ToLower(response) == "y"
Expand Down
2 changes: 1 addition & 1 deletion pkg/crc/preflight/preflight.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (check *Check) doFix() error {
panic(fmt.Sprintf("Should not happen, empty description for fix '%s'", check.configKeySuffix))
}
if check.flags&NoFix == NoFix {
return fmt.Errorf(check.fixDescription)
return fmt.Errorf("%s", check.fixDescription)
}

logging.Infof("%s", check.fixDescription)
Expand Down

0 comments on commit 8a88ac7

Please sign in to comment.