Skip to content

Commit

Permalink
Fix linter problems
Browse files Browse the repository at this point in the history
Signed-off-by: Maximillian Fan Xavier <[email protected]>
  • Loading branch information
maximillianfx committed Feb 22, 2021
1 parent 3a0aeec commit b4ade48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli/command/container/cp.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ type copyProgressPrinter struct {
toContainer bool
total *float64
writer io.Writer
quiet bool
}

func (pt *copyProgressPrinter) Read(p []byte) (int, error) {
Expand Down Expand Up @@ -357,7 +356,7 @@ func copyToContainer(ctx context.Context, dockerCli command.Cli, copyConfig cpCo
fmt.Fprint(dockerCli.Err(), "Preparing to copy...\n")
res := client.CopyToContainer(ctx, copyConfig.container, resolvedDstPath, content, options)
fmt.Fprint(dockerCli.Err(), "\n")
fmt.Fprint(dockerCli.Err(), "Successfully copied ", units.HumanSize(float64(copiedSize)), " to ", copyConfig.container, ":", dstInfo.Path, "\n")
fmt.Fprint(dockerCli.Err(), "Successfully copied ", units.HumanSize(copiedSize), " to ", copyConfig.container, ":", dstInfo.Path, "\n")

return res
}
Expand Down

0 comments on commit b4ade48

Please sign in to comment.