fix gosec

This commit is contained in:
naiba 2023-10-21 18:13:38 +08:00
parent ce530705e7
commit 014abbc41e
2 changed files with 1 additions and 4 deletions

View File

@ -117,9 +117,8 @@ func (ns *NotificationServerBundle) Send(message string) error {
verifySSL = true
}
/* #nosec */
transCfg := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: verifySSL},
TLSClientConfig: &tls.Config{InsecureSkipVerify: verifySSL}, // #nosec G402
}
client := &http.Client{Transport: transCfg, Timeout: time.Minute * 10}

View File

@ -1,8 +1,6 @@
package singleton
import (
// #nosec
"fmt"
"log"
"sync"