summaryrefslogtreecommitdiffstats
path: root/services/pull/pull.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-11-02 10:35:12 +0800
committerGitHub <noreply@github.com>2019-11-02 10:35:12 +0800
commitf518fe66620bcb60a5251befca116f8caa48ee42 (patch)
tree0522717b649d6d5148e11e122048cf8629aafcfb /services/pull/pull.go
parent4b8d9e58c58b8952e86e7e5f90a0a8e0480e1de1 (diff)
downloadgitea-f518fe66620bcb60a5251befca116f8caa48ee42.tar.gz
gitea-f518fe66620bcb60a5251befca116f8caa48ee42.zip
Rename HookQueue to hookQueue (#8778)
* Rename HookQueue to hookQueue * fix lint
Diffstat (limited to 'services/pull/pull.go')
-rw-r--r--services/pull/pull.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/services/pull/pull.go b/services/pull/pull.go
index 65b78f4101..0a4c4a7eee 100644
--- a/services/pull/pull.go
+++ b/services/pull/pull.go
@@ -50,8 +50,6 @@ func NewPullRequest(repo *models.Repository, pull *models.Issue, labelIDs []int6
Sender: pull.Poster.APIFormat(),
}); err != nil {
log.Error("PrepareWebhooks: %v", err)
- } else {
- go webhook.HookQueue.Add(repo.ID)
}
return nil
@@ -125,7 +123,6 @@ func AddTestPullRequestTask(doer *models.User, repoID int64, branch string, isSy
log.Error("PrepareWebhooks [pull_id: %v]: %v", pr.ID, err)
continue
}
- go webhook.HookQueue.Add(pr.Issue.Repo.ID)
}
}