From 4e38c79b2d99a3e029154442f7cff2ff59b1bcfe Mon Sep 17 00:00:00 2001 From: Frank Yang Date: Sun, 10 Mar 2019 05:00:08 +0800 Subject: [PATCH] Merge PR #3840: Modify magic string "json" to OutputFormatJSON --- client/keys/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/keys/utils.go b/client/keys/utils.go index 5391e704f8..3dfcd735be 100644 --- a/client/keys/utils.go +++ b/client/keys/utils.go @@ -118,7 +118,7 @@ func printKeyInfo(keyInfo keys.Info, bechKeyOut bechKeyOutFn) { printKeyTextHeader() printKeyOutput(ko) - case "json": + case OutputFormatJSON: out, err := MarshalJSON(ko) if err != nil { panic(err)