mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-01 13:36:22 +00:00
gpg.c: _ox_key_is_usable() simplify if condition
This commit is contained in:
@@ -1114,9 +1114,9 @@ _ox_key_is_usable(gpgme_key_t key, const char *const barejid, gboolean secret)
|
|||||||
{
|
{
|
||||||
gboolean result = TRUE;
|
gboolean result = TRUE;
|
||||||
|
|
||||||
if(key->revoked) result = FALSE;
|
if(key->revoked || key->expired || key->disabled ) {
|
||||||
if(key->expired) result = FALSE;
|
result = FALSE;
|
||||||
if(key->disabled) result = FALSE;
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user