summaryrefslogtreecommitdiffstats
path: root/models/action.go
diff options
context:
space:
mode:
authorJustin Nuß <justin.nuss@hmmh.de>2014-07-24 13:58:39 +0200
committerJustin Nuß <justin.nuss@hmmh.de>2014-07-24 13:58:39 +0200
commit70b0023b828b8dcd24914232741141e903532fff (patch)
tree30e2471ad6c64c8e12330dbaf5f3e0b08aad1198 /models/action.go
parenta76a948a029f46697a0e2327ea6ca86872a760d7 (diff)
downloadgitea-70b0023b828b8dcd24914232741141e903532fff.tar.gz
gitea-70b0023b828b8dcd24914232741141e903532fff.zip
Fix double decrement of issue counter
Diffstat (limited to 'models/action.go')
-rw-r--r--models/action.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/models/action.go b/models/action.go
index 362b238f26..82d65de3fb 100644
--- a/models/action.go
+++ b/models/action.go
@@ -142,18 +142,6 @@ func updateIssuesCommit(userId, repoId int64, repoUserName, repoName string, com
return err
}
- issue.Repo, err = GetRepositoryById(issue.RepoId)
-
- if err != nil {
- return err
- }
-
- issue.Repo.NumClosedIssues++
-
- if err = UpdateRepository(issue.Repo); err != nil {
- return err
- }
-
if err = ChangeMilestoneIssueStats(issue); err != nil {
return err
}