lint: err shadoing in avatar encoder

This commit is contained in:
Umputun
2018-03-07 22:19:26 -06:00
parent 438652630d
commit ac78dde639
+1 -1
View File
@@ -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