golint fixed for modules/avatar

This commit is contained in:
Lunny Xiao committed 2016-11-25 16:37:04 +08:00
1 parent 081c2a9395
commit 3c87c57d96
2 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -355,7 +355,7 @@ func (u *User) UploadAvatar(data []byte) error {
return fmt.Errorf("Decode: %v", err)
}
m := resize.Resize(avatar.AVATAR_SIZE, avatar.AVATAR_SIZE, img, resize.NearestNeighbor)
m := resize.Resize(avatar.AvatarSize, avatar.AvatarSize, img, resize.NearestNeighbor)
sess := x.NewSession()
defer sessionRelease(sess)