Merge pull request #11990 from duglin/11985-RemoveDeadCode
Remove dead code looking for non-existent err msg Upstream-commit: 7101419c1c44083cf8ba30b4469d4cde4ab05e55 Component: engine
This commit is contained in:
@ -39,12 +39,6 @@ func (cli *DockerCli) CmdInspect(args ...string) error {
|
||||
for _, name := range cmd.Args() {
|
||||
obj, _, err := readBody(cli.call("GET", "/containers/"+name+"/json", nil, nil))
|
||||
if err != nil {
|
||||
if strings.Contains(err.Error(), "Too many") {
|
||||
fmt.Fprintf(cli.err, "Error: %v", err)
|
||||
status = 1
|
||||
continue
|
||||
}
|
||||
|
||||
obj, _, err = readBody(cli.call("GET", "/images/"+name+"/json", nil, nil))
|
||||
if err != nil {
|
||||
if strings.Contains(err.Error(), "No such") {
|
||||
|
||||
Reference in New Issue
Block a user