From b1795eb04e77082a6a7cc2e7a927043f74cfe003 Mon Sep 17 00:00:00 2001 From: Alan Bernstein Date: Mon, 19 Dec 2016 15:27:50 -0600 Subject: [PATCH] Remove extraneous whitespace in JSON output --- cmd/pilosactl/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/pilosactl/main.go b/cmd/pilosactl/main.go index a48dd2f86..741f48b9b 100644 --- a/cmd/pilosactl/main.go +++ b/cmd/pilosactl/main.go @@ -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)