From 0a6a713c15517871b9beb073d6906da69f476b49 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Lanzend=C3=B6rfer?=
Date: Tue, 31 Oct 2023 17:11:38 +0000
Subject: [PATCH] Remove false comment, fix variable name
---
src/keystore.rs | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/keystore.rs b/src/keystore.rs
index 1f51c98..fdac1dd 100644
--- a/src/keystore.rs
+++ b/src/keystore.rs
@@ -829,12 +829,8 @@ impl Keystore {
}
})
{
- // Only hex characters and spaces and a fair amount of
- // them. This is probably a fingerprint. Note: the pep
- // engine never looks keys up by keyid, so we don't handle
- // them.
- let fpr = KeyID::from_hex(pattern).expect("valid key ID");
- let (cert, _private) = self.cert_find_with_key(fpr, private_only)?;
+ let keyid = KeyID::from_hex(pattern).expect("valid key ID");
+ let (cert, _private) = self.cert_find_with_key(keyid, private_only)?;
add_key(&cert);
} else if pattern.len() > 16
&& pattern.chars()