Some cleanups

- Remove unused errors.
- Add doc comments.
This commit is contained in:
Malte Meiboom
2026-05-06 16:30:42 +02:00
parent c0fe0e91ea
commit 21b45d1702
6 changed files with 14 additions and 17 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
//! introducer remove subcommand
use anyhow::Result;
use sequoia_openpgp::{Fingerprint, KeyHandle};
@@ -35,7 +37,7 @@ pub async fn dispatch(cmd: IntroducerRemoveCommand, config: HuskConfigContainer)
if let Some(cert) = certs.first() {
Introducer::remove(&context, cert, cmd.demote)?;
} else {
return Err(CommandError::CertNotFound(fpr).into());
return Err(CommandError::CertNotUsable(fpr).into());
}