Browse Source

Remove superfluous default HttpClient check in NewClient

pull/3072/head
Kyle Havlovitz 8 years ago committed by GitHub
parent
commit
04f1ff78f8
  1. 4
      api/api.go

4
api/api.go

@ -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…
Cancel
Save