mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tech(webhook): remove redundant if statement
This commit is contained in:
parent
376d2d56bf
commit
f5d8a75381
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user