lint: err shadoing in avatar encoder
This commit is contained in:
@@ -55,7 +55,7 @@ func (p *AvatarProxy) Put(u store.User) (avatarURL string, err error) {
|
||||
|
||||
// get ID and location of locally cached avatar
|
||||
encID := u.ID // all locally created comments have userID encoded hex, imported extra need encoding.
|
||||
if _, err := strconv.ParseUint(u.ID, 16, 64); err != nil {
|
||||
if _, e := strconv.ParseUint(u.ID, 16, 64); e != nil {
|
||||
encID = rest.EncodeID(u.ID)
|
||||
}
|
||||
location := p.location(encID) // location adds partion to path
|
||||
|
||||
Reference in New Issue
Block a user