Remove superfluous default HttpClient check in NewClient

pull/3072/head
Kyle Havlovitz 2017-05-24 11:40:21 -07:00 committed by GitHub
parent d3153a2369
commit 04f1ff78f8
1 changed files with 0 additions and 4 deletions

View File

@ -369,10 +369,6 @@ func NewClient(config *Config) (*Client, error) {
config.Transport = defConfig.Transport config.Transport = defConfig.Transport
} }
if config.HttpClient == nil {
config.HttpClient = defConfig.HttpClient
}
if config.TLSConfig.Address == "" { if config.TLSConfig.Address == "" {
config.TLSConfig.Address = defConfig.TLSConfig.Address config.TLSConfig.Address = defConfig.TLSConfig.Address
} }