From e8912c13ea2a5ee95b422cf1b18b00ec38d3e7ea Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Fri, 8 Jul 2016 23:21:08 +0200 Subject: [PATCH] go-ipfs-config: core/commands: do not show PrivKey in config if it is null License: MIT Signed-off-by: Jakub Sztandera --- config/identity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/identity.go b/config/identity.go index fe88a34b0..d997bc2b6 100644 --- a/config/identity.go +++ b/config/identity.go @@ -8,7 +8,7 @@ import ( // Identity tracks the configuration of the local node's identity. type Identity struct { PeerID string - PrivKey string + PrivKey string `json:",omitempty"` } // DecodePrivateKey is a helper to decode the users PrivateKey