Delete redundant err check

This commit is contained in:
zhangxiaoyu-zidif 2017-10-23 13:46:04 +08:00
parent 6f06408eea
commit 46e33f4234

View File

@ -1753,10 +1753,7 @@ func layoutContainers(containers []api.Container, w io.Writer) error {
} }
} }
_, err := fmt.Fprintf(w, "\t%s\t%s", namesBuffer.String(), imagesBuffer.String()) _, err := fmt.Fprintf(w, "\t%s\t%s", namesBuffer.String(), imagesBuffer.String())
if err != nil { return err
return err
}
return nil
} }
// Lay out all the containers on one line if use wide output. // Lay out all the containers on one line if use wide output.