mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
gpg.c: _ox_key_is_usable() simplify if condition
This commit is contained in:
parent
27f5706e77
commit
26d4b00d6d
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user