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:
Alexander Morozov
2015-04-01 10:46:10 -07:00

View File

@ -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") {