Skip to content

Commit 3d37088

Browse files
committed
cli/container_rename: remove TODO
Signed-off-by: Paweł Gronowski <[email protected]>
1 parent af255ac commit 3d37088

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

cli/command/container/rename.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package container
22

33
import (
4-
"errors"
54
"fmt"
65

76
"github.com/docker/cli/cli"
@@ -19,10 +18,6 @@ func newRenameCommand(dockerCLI command.Cli) *cobra.Command {
1918
Args: cli.ExactArgs(2),
2019
RunE: func(cmd *cobra.Command, args []string) error {
2120
oldName, newName := args[0], args[1]
22-
if newName == "" {
23-
// TODO(thaJeztah): remove once https://github.com/moby/moby/pull/51336 is merged and vendored.
24-
return errors.New("new name cannot be blank")
25-
}
2621
_, err := dockerCLI.Client().ContainerRename(cmd.Context(), oldName, client.ContainerRenameOptions{
2722
NewName: newName,
2823
})

0 commit comments

Comments
 (0)