gtlsdatabase: remove duplicate precondition check

This check is the same as the check on the line above.
This commit is contained in:
Michael Catanzaro 2020-12-07 11:11:37 -06:00
parent 416339305f
commit 855a22e165

View File

@ -516,8 +516,6 @@ g_tls_database_verify_chain (GTlsDatabase *self,
GError **error)
{
g_return_val_if_fail (G_IS_TLS_DATABASE (self), G_TLS_CERTIFICATE_GENERIC_ERROR);
g_return_val_if_fail (G_IS_TLS_DATABASE (self),
G_TLS_CERTIFICATE_GENERIC_ERROR);
g_return_val_if_fail (G_IS_TLS_CERTIFICATE (chain),
G_TLS_CERTIFICATE_GENERIC_ERROR);
g_return_val_if_fail (purpose, G_TLS_CERTIFICATE_GENERIC_ERROR);