mirror of https://github.com/hashicorp/consul
Remove superfluous default HttpClient check in NewClient
parent
d3153a2369
commit
04f1ff78f8
|
@ -369,10 +369,6 @@ func NewClient(config *Config) (*Client, error) {
|
|||
config.Transport = defConfig.Transport
|
||||
}
|
||||
|
||||
if config.HttpClient == nil {
|
||||
config.HttpClient = defConfig.HttpClient
|
||||
}
|
||||
|
||||
if config.TLSConfig.Address == "" {
|
||||
config.TLSConfig.Address = defConfig.TLSConfig.Address
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue