From 50a23edef32f13dcad983ae3d70c2f2b8a5c5e23 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 29 Oct 2019 10:10:03 +0100 Subject: [PATCH] cli/command/utils: SA1006: printf-style with no further arguments (staticcheck) ``` cli/command/utils.go:81:20: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck) fmt.Fprintf(outs, message) ^ ``` Signed-off-by: Sebastiaan van Stijn (cherry picked from commit ea64a1ceb92bea858b8a1e701ac352ccd57467fc) Signed-off-by: Sebastiaan van Stijn --- cli/command/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/command/utils.go b/cli/command/utils.go index b19c9379bb..16b79fe065 100644 --- a/cli/command/utils.go +++ b/cli/command/utils.go @@ -78,7 +78,7 @@ func PromptForConfirmation(ins io.Reader, outs io.Writer, message string) bool { } message += " [y/N] " - fmt.Fprintf(outs, message) + _, _ = fmt.Fprint(outs, message) // On Windows, force the use of the regular OS stdin stream. if runtime.GOOS == "windows" {