mirror of https://github.com/docker/cli.git
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) ^ Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
ea64a1ceb9
commit
709728e723
|
@ -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.
|
// should be just the image ID and we'll print that to stdout.
|
||||||
if options.quiet {
|
if options.quiet {
|
||||||
imageID = fmt.Sprintf("%s", buildBuff)
|
imageID = fmt.Sprintf("%s", buildBuff)
|
||||||
fmt.Fprintf(dockerCli.Out(), imageID)
|
_, _ = fmt.Fprint(dockerCli.Out(), imageID)
|
||||||
}
|
}
|
||||||
|
|
||||||
if options.imageIDFile != "" {
|
if options.imageIDFile != "" {
|
||||||
|
|
Loading…
Reference in New Issue