diff options
Diffstat (limited to 'identity/bare.go')
-rw-r--r-- | identity/bare.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/identity/bare.go b/identity/bare.go index 93cea91f..a243f074 100644 --- a/identity/bare.go +++ b/identity/bare.go @@ -50,13 +50,12 @@ type bareIdentityJSON struct { } func (i *Bare) MarshalJSON() ([]byte, error) { - data, err := json.Marshal(bareIdentityJSON{ + return json.Marshal(bareIdentityJSON{ Name: i.name, Email: i.email, Login: i.login, AvatarUrl: i.avatarUrl, }) - return data, err } func (i *Bare) UnmarshalJSON(data []byte) error { |