aboutsummaryrefslogtreecommitdiffstats
path: root/identity/version.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-02-24 18:49:12 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:52:53 +0100
commit46beb4b886761ff69abe2ce45c2498a4fafe50d9 (patch)
tree2722505d859d93a309e6fcee40af7812c74d1220 /identity/version.go
parent475b7b4c490bc3729772932f2d7bbcabb8f781a7 (diff)
downloadgit-bug-46beb4b886761ff69abe2ce45c2498a4fafe50d9.tar.gz
identity: another round of cleanups
Diffstat (limited to 'identity/version.go')
-rw-r--r--identity/version.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/identity/version.go b/identity/version.go
index 1259ae9c..95530767 100644
--- a/identity/version.go
+++ b/identity/version.go
@@ -51,11 +51,11 @@ type VersionJSON struct {
Time lamport.Time `json:"time"`
UnixTime int64 `json:"unix_time"`
- Name string `json:"name"`
- Email string `json:"email"`
- Login string `json:"login"`
- AvatarUrl string `json:"avatar_url"`
- Keys []Key `json:"pub_keys"`
+ Name string `json:"name,omitempty"`
+ Email string `json:"email,omitempty"`
+ Login string `json:"login,omitempty"`
+ AvatarUrl string `json:"avatar_url,omitempty"`
+ Keys []Key `json:"pub_keys,omitempty"`
Nonce []byte `json:"nonce,omitempty"`
Metadata map[string]string `json:"metadata,omitempty"`
}