about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-02 15:11:06 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-02 15:11:06 +0200
commit26d4b00d6d3bce10296622059429684c6a68f3e4 (patch)
tree7daf10462173a0c10b51704593159677a49d4299 /src
parent27f5706e77798f79ff1824119464642104876a16 (diff)
downloadprofani-tty-26d4b00d6d3bce10296622059429684c6a68f3e4.tar.gz
gpg.c: _ox_key_is_usable() simplify if condition
Diffstat (limited to 'src')
-rw-r--r--src/pgp/gpg.c6
1 files 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;
 }