Remove unnecessary branching
This commit is contained in:
parent
4f9367e690
commit
dc599bb036
@ -76,10 +76,7 @@ func (this *ConnectionConfig) UseTLS(caCertificatePath string) error {
|
|||||||
InsecureSkipVerify: skipVerify,
|
InsecureSkipVerify: skipVerify,
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := mysql.RegisterTLSConfig(this.Key.StringCode(), this.tlsConfig); err != nil {
|
return mysql.RegisterTLSConfig(this.Key.StringCode(), this.tlsConfig)
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *ConnectionConfig) TLSConfig() *tls.Config {
|
func (this *ConnectionConfig) TLSConfig() *tls.Config {
|
||||||
|
Loading…
Reference in New Issue
Block a user