Skip to content

Commit 8a88ac7

Browse files
vyasgunpraveenkumar
authored andcommitted
Fix: go-lint fixes for go tools 0.24.0 update
Related PR: #4316
1 parent ab63fcd commit 8a88ac7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cmd/crc/cmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func runPrerun(cmd *cobra.Command) error {
8181
logging.InitLogrus(logFile)
8282

8383
for _, str := range defaultVersion().lines() {
84-
logging.Debugf(str)
84+
logging.Debugf("%s", str)
8585
}
8686
return nil
8787
}
@@ -138,7 +138,7 @@ func setProxyDefaults() error {
138138
}
139139

140140
if proxyConfig.IsEnabled() {
141-
logging.Debugf(proxyConfig.String())
141+
logging.Debugf("%s", proxyConfig.String())
142142
proxyConfig.ApplyToEnvironment()
143143
}
144144
return nil

pkg/crc/input/input.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func PromptUserForYesOrNo(message string, force bool) bool {
1515
return false
1616
}
1717
var response string
18-
fmt.Printf(message + "? [y/N]: ")
18+
fmt.Printf("%s? [y/N]: ", message)
1919
_, _ = fmt.Scanf("%s", &response)
2020

2121
return strings.ToLower(response) == "y"

pkg/crc/preflight/preflight.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (check *Check) doFix() error {
7272
panic(fmt.Sprintf("Should not happen, empty description for fix '%s'", check.configKeySuffix))
7373
}
7474
if check.flags&NoFix == NoFix {
75-
return fmt.Errorf(check.fixDescription)
75+
return fmt.Errorf("%s", check.fixDescription)
7676
}
7777

7878
logging.Infof("%s", check.fixDescription)

0 commit comments

Comments
 (0)