Skip to content

Commit

Permalink
webhook: remove unnecessary PostWebhookContextCustomHTTP function
Browse files Browse the repository at this point in the history
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
  • Loading branch information
zchee committed Feb 24, 2022
1 parent 67b468f commit 741a1f5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions webhooks.go
Expand Up @@ -35,10 +35,6 @@ func PostWebhookCustomHTTP(url string, httpClient *http.Client, msg *WebhookMess
return PostWebhookCustomHTTPContext(context.Background(), url, httpClient, msg)
}

func PostWebhookContextCustomHTTP(ctx context.Context, url string, httpClient *http.Client, msg *WebhookMessage) error {
return PostWebhookCustomHTTPContext(ctx, url, httpClient, msg)
}

func PostWebhookCustomHTTPContext(ctx context.Context, url string, httpClient *http.Client, msg *WebhookMessage) error {
raw, err := json.Marshal(msg)
if err != nil {
Expand Down

0 comments on commit 741a1f5

Please sign in to comment.