From 7bf61a89d3e5f127556a4fa5099b2b6796dfc851 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Tue, 23 Feb 2021 02:54:01 +0800 Subject: [PATCH] fix a small nit (#14769) --- services/webhook/webhook.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/webhook/webhook.go b/services/webhook/webhook.go index 87f28a5cdc..cc79ec15d1 100644 --- a/services/webhook/webhook.go +++ b/services/webhook/webhook.go @@ -130,6 +130,8 @@ func prepareWebhook(w *models.Webhook, repo *models.Repository, event models.Hoo if !e.Has() { return nil } + + break } }