Remove superfluous default HttpClient check in NewClient

This commit is contained in:
Kyle Havlovitz 2017-05-24 11:40:21 -07:00 committed by GitHub
parent d3153a2369
commit 04f1ff78f8

View File

@ -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
}