Skip to content

Commit b293feb

Browse files
committed
fix lint
1 parent b4f79f8 commit b293feb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/webhook.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ func (t *HookTask) deliver() error {
850850
}
851851
}()
852852

853-
resp, err := webhookHttpClient.Do(req)
853+
resp, err := webhookHTTPClient.Do(req)
854854
if err != nil {
855855
t.ResponseInfo.Body = fmt.Sprintf("Delivery: %v", err)
856856
return err
@@ -915,13 +915,13 @@ func DeliverHooks() {
915915
}
916916
}
917917

918-
var webhookHttpClient *http.Client
918+
var webhookHTTPClient *http.Client
919919

920920
// InitDeliverHooks starts the hooks delivery thread
921921
func InitDeliverHooks() {
922922
timeout := time.Duration(setting.Webhook.DeliverTimeout) * time.Second
923923

924-
webhookHttpClient = &http.Client{
924+
webhookHTTPClient = &http.Client{
925925
Transport: &http.Transport{
926926
TLSClientConfig: &tls.Config{InsecureSkipVerify: setting.Webhook.SkipTLSVerify},
927927
Dial: func(netw, addr string) (net.Conn, error) {

0 commit comments

Comments
 (0)