Skip to content

Commit 0c7fce9

Browse files
temblekingCopilot
andauthored
chore: remove unnecessary check for null TLSClientConfig
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d415cd9 commit 0c7fce9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cmd/server/main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ func setupSysdigClient(cfg *config.Config) (sysdig.ExtendedClientWithResponsesIn
9393

9494
if cfg.SkipTLSVerification {
9595
transport := http.DefaultTransport.(*http.Transport).Clone()
96-
if transport.TLSClientConfig == nil {
97-
transport.TLSClientConfig = &tls.Config{}
98-
}
9996
transport.TLSClientConfig.InsecureSkipVerify = true
10097
httpClient := &http.Client{Transport: transport}
10198

0 commit comments

Comments
 (0)