mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Remove redundent assignment to InsecureSkipVerify
This second codepath is redundent, since tlsConfig.InsecureSkipVerify is assigned to earlier in that function body. In addition, there's no need to wrap the assignment in a check on that boolean value in this case. Signed-off-by: Paul Tagliamonte <paultag@gmail.com>
This commit is contained in:
@@ -27,9 +27,6 @@ func getTLSConfig(caCert, cert, key []byte, allowInsecure bool) (*tls.Config, er
|
||||
return &tlsConfig, err
|
||||
}
|
||||
tlsConfig.Certificates = []tls.Certificate{keypair}
|
||||
if allowInsecure {
|
||||
tlsConfig.InsecureSkipVerify = true
|
||||
}
|
||||
|
||||
return &tlsConfig, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user