1
0
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:
Michael Vetter 2020-07-02 15:11:06 +02:00
parent 27f5706e77
commit 26d4b00d6d

View File

@ -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;
} }