Remove extraneous whitespace in JSON output

This commit is contained in:
Alan Bernstein 2016-12-19 15:27:50 -06:00
parent e7a605e4fe
commit b1795eb04e

View file

@ -1284,8 +1284,8 @@ func (cmd *BagentCommand) Run(ctx context.Context) error {
res := sbm.Run(ctx, cmd.AgentNum)
res["metadata"] = cmd
enc := json.NewEncoder(cmd.Stdout)
enc.SetIndent("", " ")
if cmd.HumanReadable {
enc.SetIndent("", " ")
res = bench.Prettify(res)
}
err = enc.Encode(res)