Skip to content

Commit

Permalink
Remove false comment, fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
leviathanch committed Oct 31, 2023
1 parent 6540eb5 commit 0a6a713
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/keystore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0a6a713

Please sign in to comment.