diff options
author | Michael Muré <batolettre@gmail.com> | 2020-10-04 20:57:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-04 20:57:54 +0200 |
commit | c738852af0b8b1013c7911f2c3d275446d9e8936 (patch) | |
tree | 0ebfbc122240736292338275a5b599abaa7d710b /identity/common.go | |
parent | 5d1fc3ff393133a8aa67b97f9beecfe9b57c7e56 (diff) | |
parent | 499dbc0a032ff28eea99e5308be9b6c8f2d208ad (diff) | |
download | git-bug-c738852af0b8b1013c7911f2c3d275446d9e8936.tar.gz |
Merge pull request #417 from MichaelMure/remove-legacy-identity
identity: remove support for legacy identity
Diffstat (limited to 'identity/common.go')
-rw-r--r-- | identity/common.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/identity/common.go b/identity/common.go index 007e10d6..5c6445e9 100644 --- a/identity/common.go +++ b/identity/common.go @@ -33,18 +33,5 @@ func UnmarshalJSON(raw json.RawMessage) (Interface, error) { return nil, err } - // Fallback on a legacy Bare identity - b := &Bare{} - - err = json.Unmarshal(raw, b) - if err == nil && (b.name != "" || b.login != "") { - return b, nil - } - - // abort if we have an error other than the wrong type - if _, ok := err.(*json.UnmarshalTypeError); err != nil && !ok { - return nil, err - } - return nil, fmt.Errorf("unknown identity type") } |