summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-11 11:40:47 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-11 11:40:47 -0400
commit12f81de349b9793c6f8f14b11af32ee94a735d5f (patch)
treeb8a5833bfa660ddf639eb8ecb701336b212a011e /models
parentb3de0ded70bdc6ea460a8a4002aae084d07c384e (diff)
downloadgitea-12f81de349b9793c6f8f14b11af32ee94a735d5f.tar.gz
gitea-12f81de349b9793c6f8f14b11af32ee94a735d5f.zip
Finish delete user
Diffstat (limited to 'models')
-rw-r--r--models/user.go4
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
}