diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-11-02 10:35:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-02 10:35:12 +0800 |
commit | f518fe66620bcb60a5251befca116f8caa48ee42 (patch) | |
tree | 0522717b649d6d5148e11e122048cf8629aafcfb /services/pull/review.go | |
parent | 4b8d9e58c58b8952e86e7e5f90a0a8e0480e1de1 (diff) | |
download | gitea-f518fe66620bcb60a5251befca116f8caa48ee42.tar.gz gitea-f518fe66620bcb60a5251befca116f8caa48ee42.zip |
Rename HookQueue to hookQueue (#8778)
* Rename HookQueue to hookQueue
* fix lint
Diffstat (limited to 'services/pull/review.go')
-rw-r--r-- | services/pull/review.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/services/pull/review.go b/services/pull/review.go index cffe5da4dd..ffb7be82b2 100644 --- a/services/pull/review.go +++ b/services/pull/review.go @@ -56,7 +56,7 @@ func reviewHook(review *models.Review) error { if err != nil { return err } - if err := webhook.PrepareWebhooks(review.Issue.Repo, reviewHookType, &api.PullRequestPayload{ + return webhook.PrepareWebhooks(review.Issue.Repo, reviewHookType, &api.PullRequestPayload{ Action: api.HookIssueSynchronized, Index: review.Issue.Index, PullRequest: pr.APIFormat(), @@ -66,10 +66,5 @@ func reviewHook(review *models.Review) error { Type: string(reviewHookType), Content: review.Content, }, - }); err != nil { - return err - } - go webhook.HookQueue.Add(review.Issue.Repo.ID) - - return nil + }) } |