Commit f5d8a753 by bergquist

tech(webhook): remove redundant if statement

parent 376d2d56
......@@ -64,10 +64,8 @@ func sendWebRequestSync(ctx context.Context, webhook *Webhook) error {
request.Header.Add("Authorization", util.GetBasicAuthHeader(webhook.User, webhook.Password))
}
if len(webhook.HttpHeader) != 0 {
for k, v := range webhook.HttpHeader {
request.Header.Set(k, v)
}
for k, v := range webhook.HttpHeader {
request.Header.Set(k, v)
}
resp, err := ctxhttp.Do(ctx, http.DefaultClient, request)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment