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>
This commit is contained in:
Jakub Sztandera 2016-07-08 23:21:08 +02:00
parent 35108597dd
commit e8912c13ea

View File

@ -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