From ea64a1ceb92bea858b8a1e701ac352ccd57467fc 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 --- 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 21e702eb3f..72503f5d01 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" {