cli/command/image: SA1006: printf-style with no further arguments (staticcheck)
cli/command/image/build.go:434:32: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck)
fmt.Fprintf(dockerCli.Out(), imageID)
^
@@ -431,7 +431,7 @@ func runBuild(dockerCli command.Cli, options buildOptions) error {
// should be just the image ID and we'll print that to stdout.
if options.quiet {
imageID = fmt.Sprintf("%s", buildBuff)
- fmt.Fprintf(dockerCli.Out(), imageID)
+ _, _ = fmt.Fprint(dockerCli.Out(), imageID)
}
if options.imageIDFile != "" {
