mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 13:55:55 +00:00
Remove superfluous default HttpClient check in NewClient
This commit is contained in:
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…
x
Reference in New Issue
Block a user