Explicit initialization

This commit is contained in:
Frank Denis 2019-12-09 16:56:43 +01:00
parent 49460f1d6f
commit 3e32d38f29
1 changed files with 1 additions and 0 deletions

View File

@ -247,6 +247,7 @@ func (xTransport *XTransport) resolveUsingResolver(proto, host string, resolver
// Return a cached entry, or resolve a name and update the cache
func (xTransport *XTransport) resolveWithCache(host string) (err error) {
err = nil
if xTransport.proxyDialer != nil || xTransport.httpProxyFunction != nil {
return
}