Remove unnecessary branching

This commit is contained in:
Brandon Bodnar 2019-01-31 17:20:11 -06:00
parent 4f9367e690
commit dc599bb036

View File

@ -76,10 +76,7 @@ func (this *ConnectionConfig) UseTLS(caCertificatePath string) error {
InsecureSkipVerify: skipVerify,
}
if err := mysql.RegisterTLSConfig(this.Key.StringCode(), this.tlsConfig); err != nil {
return err
}
return nil
return mysql.RegisterTLSConfig(this.Key.StringCode(), this.tlsConfig)
}
func (this *ConnectionConfig) TLSConfig() *tls.Config {