aboutsummaryrefslogtreecommitdiffstats
path: root/identity/common.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-01-21 18:49:33 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-08 17:18:30 +0100
commit8da522d97af3dcaca8a8424e3541705c69779d6f (patch)
treeb67af18d752d3821bcbf62e362f699477eed9245 /identity/common.go
parentb950c2580dfbf7672ee9e5e1e3f5b45c8cbc2788 (diff)
downloadgit-bug-8da522d97af3dcaca8a8424e3541705c69779d6f.tar.gz
wip
Diffstat (limited to 'identity/common.go')
-rw-r--r--identity/common.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/identity/common.go b/identity/common.go
index 007e10d6..0fd2b274 100644
--- a/identity/common.go
+++ b/identity/common.go
@@ -37,7 +37,7 @@ func UnmarshalJSON(raw json.RawMessage) (Interface, error) {
b := &Bare{}
err = json.Unmarshal(raw, b)
- if err == nil && (b.name != "" || b.login != "") {
+ if err == nil && b.name != "" {
return b, nil
}