summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-11-25 10:11:44 +0100
committerGitHub <noreply@github.com>2016-11-25 10:11:44 +0100
commit3e6f36347196b7d8a16b096806a7140950545d0c (patch)
tree78b4077a13e91fc6764a8a9ad3020d0477a6c260 /models
parent2255a9af6a471ca6d993ae8ff4d178b304131477 (diff)
parent3c87c57d969dad4d600e2df73cb4ce1e9dcbd7f4 (diff)
downloadgitea-3e6f36347196b7d8a16b096806a7140950545d0c.tar.gz
gitea-3e6f36347196b7d8a16b096806a7140950545d0c.zip
Merge pull request #256 from lunny/lunny/golint_modules_avatar
Golint fixed for modules/avatar
Diffstat (limited to 'models')
-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)