aboutsummaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-11-25 16:37:04 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2016-11-25 16:37:04 +0800
commit3c87c57d969dad4d600e2df73cb4ce1e9dcbd7f4 (patch)
treea6a060cd43fdfb2fc54f53978628b4e0beb8cd9f /models/user.go
parent081c2a9395706e24bb396bf2aa9ac8a92d0a8f40 (diff)
downloadgitea-3c87c57d969dad4d600e2df73cb4ce1e9dcbd7f4.tar.gz
gitea-3c87c57d969dad4d600e2df73cb4ce1e9dcbd7f4.zip
golint fixed for modules/avatar
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go
index e8c5c91680..6c0223e6ee 100644
--- a/models/user.go
+++ b/models/user.go
@@ -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)