From 99b5c58d43137bd9f6503788a55484327b0c531f Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Mon, 12 Aug 2019 16:12:14 +0200 Subject: finish the refactoring for the dedicated identifier type --- identity/bare.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'identity/bare.go') 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 { -- cgit