aboutsummaryrefslogtreecommitdiffstats
path: root/identity/bare.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-08-12 16:12:14 +0200
committerMichael Muré <batolettre@gmail.com>2019-08-12 16:12:14 +0200
commit99b5c58d43137bd9f6503788a55484327b0c531f (patch)
tree08ecc0f923b5f1fb4e8a7627aeabccb335d92ad1 /identity/bare.go
parent67a3752e176790e82a48706236f889cab4f8913d (diff)
downloadgit-bug-99b5c58d43137bd9f6503788a55484327b0c531f.tar.gz
finish the refactoring for the dedicated identifier type
Diffstat (limited to 'identity/bare.go')
-rw-r--r--identity/bare.go3
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 {