Skip to content

Commit 05f4b08

Browse files
committed
refactor
1 parent fa2f6ff commit 05f4b08

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

taskfile/node_http.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func buildHTTPClient(insecure bool, caCert, cert, certKey string) (*http.Client,
3838
}
3939

4040
tlsConfig := &tls.Config{
41-
InsecureSkipVerify: insecure, //nolint:gosec
41+
InsecureSkipVerify: insecure,
4242
}
4343

4444
// Load custom CA certificate if provided
@@ -84,8 +84,7 @@ func NewHTTPNode(
8484
if url.Scheme == "http" && !insecure {
8585
return nil, &errors.TaskfileNotSecureError{URI: url.Redacted()}
8686
}
87-
88-
// Build HTTP client with TLS configuration from node options
87+
8988
client, err := buildHTTPClient(insecure, base.caCert, base.cert, base.certKey)
9089
if err != nil {
9190
return nil, err

0 commit comments

Comments
 (0)