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, 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 {