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:
parent
fb41283e49
commit
1ea0be9dbc
1 changed files with 0 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue