diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-11 11:40:47 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-11 11:40:47 -0400 |
commit | 12f81de349b9793c6f8f14b11af32ee94a735d5f (patch) | |
tree | b8a5833bfa660ddf639eb8ecb701336b212a011e /models | |
parent | b3de0ded70bdc6ea460a8a4002aae084d07c384e (diff) | |
download | gitea-12f81de349b9793c6f8f14b11af32ee94a735d5f.tar.gz gitea-12f81de349b9793c6f8f14b11af32ee94a735d5f.zip |
Finish delete user
Diffstat (limited to 'models')
-rw-r--r-- | models/user.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/user.go b/models/user.go index 05169e4699..8fa2e44e00 100644 --- a/models/user.go +++ b/models/user.go @@ -150,10 +150,10 @@ func UpdateUser(user *User) (err error) { // DeleteUser completely deletes everything of the user. func DeleteUser(user *User) error { - cnt, err := GetRepositoryCount(user) + count, err := GetRepositoryCount(user) if err != nil { return errors.New("modesl.GetRepositories: " + err.Error()) - } else if cnt > 0 { + } else if count > 0 { return ErrUserOwnRepos } |