Skip to content

Commit

Permalink
fix wrong error returned
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed May 9, 2022
1 parent 83960b0 commit 4fc60d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avatar/avatar.go
Expand Up @@ -44,7 +44,7 @@ func (p *Proxy) Put(u token.User, client *http.Client) (avatarURL string, err er
// put returns avatar base name, like 123456.image
avatarID, e := p.Store.Put(userID, p.resize(bytes.NewBuffer(b), p.ResizeLimit))
if e != nil {
return "", err
return "", e
}

p.Logf("[DEBUG] saved identicon avatar to %s, user %q", avatarID, u.Name)
Expand Down

0 comments on commit 4fc60d6

Please sign in to comment.