1
0
Fork 0
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:
Qiang Huang 2015-04-28 18:51:04 +08:00
parent aebeefa886
commit c7812f01c7

View file

@ -34,7 +34,7 @@ func (cli *DockerCli) CmdInspect(args ...string) error {
}
indented := new(bytes.Buffer)
indented.WriteByte('[')
indented.WriteString("[\n")
status := 0
isImage := false