go-ipfs-config: core/commands: do not show PrivKey in config if it is null
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
Jakub Sztandera committed
Jul 8, 2016 at 23:21 UTC
e8912c13ea2a5ee95b422cf1b18b00ec38d3e7ea
1 file changed
+1
-1
config/identity.go
+1
-1
@@ -8,7 +8,7 @@ import (
8
// Identity tracks the configuration of the local node's identity.
9
type Identity struct {
10
PeerID string
11
- PrivKey string
11
+ PrivKey string `json:",omitempty"`
12
}
13
14
// DecodePrivateKey is a helper to decode the users PrivateKey