From 66059be93bdb4beac5208fd063100e5d8060576d Mon Sep 17 00:00:00 2001 From: Martin Treml Date: Tue, 5 Mar 2019 11:38:26 +0100 Subject: [PATCH] Remove unnecessary comment --- gitlab/gitlab.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gitlab/gitlab.go b/gitlab/gitlab.go index 9d478fc..dfefb1a 100644 --- a/gitlab/gitlab.go +++ b/gitlab/gitlab.go @@ -89,7 +89,7 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error) return nil, ErrInvalidHTTPMethod } - // Add SystemHookEvents to event slice to allow parsing of it + // Add SystemHookEvents to event slice to allow parsing events = append(events, SystemHookEvents) // If we have a Secret set, we should check the MAC @@ -107,7 +107,6 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error) gitLabEvent := Event(event) - // check if payload is empty - that means it was no system hook call payload, err := ioutil.ReadAll(r.Body) if err != nil || len(payload) == 0 { return nil, ErrParsingPayload