summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-04 21:57:10 -0500
committerUnknwon <u@gogs.io>2015-11-04 21:57:10 -0500
commitf255b1e86dae17dc0221b537d85f25bfa72a7912 (patch)
tree7b27cb470f8f2a3772bf02e756c0c2ba6f50cd96 /models/user.go
parent9372eedf2ea7e8ccf8b127843e592765cbc1b034 (diff)
downloadgitea-f255b1e86dae17dc0221b537d85f25bfa72a7912.tar.gz
gitea-f255b1e86dae17dc0221b537d85f25bfa72a7912.zip
#1896 fatal when no needed update task
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/user.go b/models/user.go
index 516c424988..4f9095ed1f 100644
--- a/models/user.go
+++ b/models/user.go
@@ -728,9 +728,9 @@ func UserPath(userName string) string {
return filepath.Join(setting.RepoRootPath, strings.ToLower(userName))
}
-func GetUserByKeyId(keyId int64) (*User, error) {
+func GetUserByKeyID(keyID int64) (*User, error) {
user := new(User)
- has, err := x.Sql("SELECT a.* FROM `user` AS a, public_key AS b WHERE a.id = b.owner_id AND b.id=?", keyId).Get(user)
+ has, err := x.Sql("SELECT a.* FROM `user` AS a, public_key AS b WHERE a.id = b.owner_id AND b.id=?", keyID).Get(user)
if err != nil {
return nil, err
} else if !has {