From 70b0023b828b8dcd24914232741141e903532fff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Justin=20Nu=C3=9F?= Date: Thu, 24 Jul 2014 13:58:39 +0200 Subject: [PATCH] Fix double decrement of issue counter --- models/action.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/models/action.go b/models/action.go index 362b238f26a4..82d65de3fb87 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 }