openpgp-card: minor cleanup
This commit is contained in:
parent
308bd804ae
commit
8e4ee08802
1 changed files with 1 additions and 3 deletions
|
@ -1083,11 +1083,9 @@ impl<'a> OpenPgpTransaction<'a> {
|
||||||
key: Box<dyn CardUploadableKey>,
|
key: Box<dyn CardUploadableKey>,
|
||||||
key_type: KeyType,
|
key_type: KeyType,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
let algo_info = self.algorithm_information();
|
|
||||||
|
|
||||||
// An error is ok - it's fine if a card doesn't offer a list of
|
// An error is ok - it's fine if a card doesn't offer a list of
|
||||||
// supported algorithms
|
// supported algorithms
|
||||||
let algo_info = algo_info.unwrap_or(None);
|
let algo_info = self.algorithm_information().unwrap_or(None);
|
||||||
|
|
||||||
keys::key_import(self, key, key_type, algo_info)
|
keys::key_import(self, key, key_type, algo_info)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue