From 05f4b080a5cba7dd57f52d4980c9925b37dbc81f Mon Sep 17 00:00:00 2001 From: Valentin Maerten Date: Sat, 29 Nov 2025 19:40:01 +0100 Subject: [PATCH] refactor --- taskfile/node_http.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/taskfile/node_http.go b/taskfile/node_http.go index 72a2e273..75b8ece3 100644 --- a/taskfile/node_http.go +++ b/taskfile/node_http.go @@ -38,7 +38,7 @@ func buildHTTPClient(insecure bool, caCert, cert, certKey string) (*http.Client, } tlsConfig := &tls.Config{ - InsecureSkipVerify: insecure, //nolint:gosec + InsecureSkipVerify: insecure, } // Load custom CA certificate if provided @@ -84,8 +84,7 @@ func NewHTTPNode( if url.Scheme == "http" && !insecure { return nil, &errors.TaskfileNotSecureError{URI: url.Redacted()} } - - // Build HTTP client with TLS configuration from node options + client, err := buildHTTPClient(insecure, base.caCert, base.cert, base.certKey) if err != nil { return nil, err