From 68f10e4fc7a5b231b44414c6a7bd14faf8d356ec Mon Sep 17 00:00:00 2001 From: naiba Date: Sat, 21 Oct 2023 22:11:55 +0800 Subject: [PATCH] fix gosec --- model/notification.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/model/notification.go b/model/notification.go index f3227f9..b231714 100644 --- a/model/notification.go +++ b/model/notification.go @@ -118,7 +118,9 @@ func (ns *NotificationServerBundle) Send(message string) error { } transCfg := &http.Transport{ - TLSClientConfig: &tls.Config{InsecureSkipVerify: verifySSL}, // #nosec G402 + TLSClientConfig: &tls.Config{ + InsecureSkipVerify: verifySSL, // #nosec G402 + }, } client := &http.Client{Transport: transCfg, Timeout: time.Minute * 10}