mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix a minor inspect format issue
Before, inspect cont1 cont2 shows: [{ xxx } ,{ xxx } ] After, it shows: [ { xxx } ,{ xxx } ] Because `func (*Encoder) Encode` always followed by a newline character, so it's difficult to put '}' and ']' one the same line. To get symmetry, above is our choice. Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
parent
aebeefa886
commit
c7812f01c7
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ func (cli *DockerCli) CmdInspect(args ...string) error {
|
|||
}
|
||||
|
||||
indented := new(bytes.Buffer)
|
||||
indented.WriteByte('[')
|
||||
indented.WriteString("[\n")
|
||||
status := 0
|
||||
isImage := false
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue