mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-19 15:01:22 +02:00
refactor: fix lint errors; improve error handling
This commit is contained in:
@@ -27,7 +27,6 @@ type HTTPConfig struct {
|
||||
|
||||
// BuildTLSConfig creates a TLS configuration based on the HTTP config options.
|
||||
func (cfg *HTTPConfig) BuildTLSConfig(targetURL *url.URL) (*tls.Config, error) {
|
||||
//nolint:gosec
|
||||
tlsConfig := &tls.Config{}
|
||||
|
||||
// Handle InsecureSkipVerify (legacy NoTLSVerify option)
|
||||
|
||||
@@ -8,6 +8,7 @@ import (
|
||||
gperr "github.com/yusing/goutils/errs"
|
||||
)
|
||||
|
||||
//nolint:recvcheck
|
||||
type Scheme uint8
|
||||
|
||||
var ErrInvalidScheme = errors.New("invalid scheme")
|
||||
|
||||
Reference in New Issue
Block a user