diff --git a/services/webhook/webhook.go b/services/webhook/webhook.go
index 87f28a5cd..cc79ec15d 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
 		}
 	}