diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-13 05:27:01 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-13 05:27:01 -0500 |
commit | 9e2284048372864a7dbc5e192877ebdca04abcab (patch) | |
tree | 82b98f331ef96b3eff144d4fe48b9504ffd247dc /models | |
parent | 8eb5120fbd19dac1221f82d84c339b4be9b0975b (diff) | |
download | gitea-9e2284048372864a7dbc5e192877ebdca04abcab.tar.gz gitea-9e2284048372864a7dbc5e192877ebdca04abcab.zip |
fix #622
Diffstat (limited to 'models')
-rw-r--r-- | models/user.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/models/user.go b/models/user.go index e7e6ed409f..88fcb8388e 100644 --- a/models/user.go +++ b/models/user.go @@ -376,7 +376,7 @@ func UpdateUser(u *User) error { return err } -// TODO: need some kind of mechanism to record failure. +// FIXME: need some kind of mechanism to record failure. HINT: system notice // DeleteUser completely and permanently deletes everything of user. func DeleteUser(u *User) error { // Check ownership of repository. @@ -390,13 +390,13 @@ func DeleteUser(u *User) error { // Check membership of organization. count, err = u.GetOrganizationCount() if err != nil { - return errors.New("modesl.GetRepositories(GetOrganizationCount): " + err.Error()) + return errors.New("GetOrganizationCount: " + err.Error()) } else if count > 0 { return ErrUserHasOrgs } - // TODO: check issues, other repos' commits - // TODO: roll backable in some point. + // FIXME: check issues, other repos' commits + // FIXME: roll backable in some point. // Delete all followers. if _, err = x.Delete(&Follow{FollowId: u.Id}); err != nil { |