1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Remove unused var 'errTLSConfigUnavailable' (#29626)

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
This commit is contained in:
WANG Yuexiao 2016-12-21 19:41:14 +08:00 committed by Doug Davis
parent fb41283e49
commit 1ea0be9dbc

View file

@ -2,12 +2,9 @@ package client
import ( import (
"crypto/tls" "crypto/tls"
"errors"
"net/http" "net/http"
) )
var errTLSConfigUnavailable = errors.New("TLSConfig unavailable")
// transportFunc allows us to inject a mock transport for testing. We define it // transportFunc allows us to inject a mock transport for testing. We define it
// here so we can detect the tlsconfig and return nil for only this type. // here so we can detect the tlsconfig and return nil for only this type.
type transportFunc func(*http.Request) (*http.Response, error) type transportFunc func(*http.Request) (*http.Response, error)