diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-07-02 15:11:06 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-07-02 15:11:06 +0200 |
commit | 26d4b00d6d3bce10296622059429684c6a68f3e4 (patch) | |
tree | 7daf10462173a0c10b51704593159677a49d4299 /src/pgp | |
parent | 27f5706e77798f79ff1824119464642104876a16 (diff) | |
download | profani-tty-26d4b00d6d3bce10296622059429684c6a68f3e4.tar.gz |
gpg.c: _ox_key_is_usable() simplify if condition
Diffstat (limited to 'src/pgp')
-rw-r--r-- | src/pgp/gpg.c | 6 |
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; } |