From 26d4b00d6d3bce10296622059429684c6a68f3e4 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 2 Jul 2020 15:11:06 +0200 Subject: [PATCH] gpg.c: _ox_key_is_usable() simplify if condition --- src/pgp/gpg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pgp/gpg.c b/src/pgp/gpg.c index e3ae3bbc..6fe2e858 100644 --- a/src/pgp/gpg.c +++ b/src/pgp/gpg.c @@ -1114,9 +1114,9 @@ _ox_key_is_usable(gpgme_key_t key, const char *const barejid, gboolean secret) { gboolean result = TRUE; - if(key->revoked) result = FALSE; - if(key->expired) result = FALSE; - if(key->disabled) result = FALSE; + if(key->revoked || key->expired || key->disabled ) { + result = FALSE; + } return result; }