summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2022-01-24 13:37:34 +0100
committerNeal H. Walfield <neal@pep.foundation>2022-01-24 13:37:34 +0100
commitcd1da8015cb1fabcabe941869b8b922bc2c7a5eb (patch)
tree967f8b0472e1572b12d951d1644f912b6c90c112
parent3c55d850a10a771c5d4ded1267a6ed9ad44632eb (diff)
sq: Simplify test.
-rw-r--r--sq/src/commands/revoke.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/sq/src/commands/revoke.rs b/sq/src/commands/revoke.rs
index 1561c433..b863f245 100644
--- a/sq/src/commands/revoke.rs
+++ b/sq/src/commands/revoke.rs
@@ -229,10 +229,7 @@ key material"));
if ! config.force {
let vc = cert.with_policy(NP, None)?;
let present = vc.userids().any(|u| {
- if u.value() == userid.as_bytes() {
- return true;
- }
- false
+ u.value() == userid.as_bytes()
});
if ! present {