Cleanup _pgpEncrypt

Signed-off-by: Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
This commit is contained in:
Georg Pfuetzenreuter 2022-07-05 15:35:22 +02:00
parent f49a3ac1ff
commit 4c8f31ffb0
No known key found for this signature in database
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -81,7 +81,6 @@ class Email {
* @return {string} the encrypted PGP message block * @return {string} the encrypted PGP message block
*/ */
async _pgpEncrypt(plaintext, publicKeyArmored) { async _pgpEncrypt(plaintext, publicKeyArmored) {
//const {keys: [key], err} =
let key; let key;
try { try {
key = await openpgp.readKey({armoredKey: publicKeyArmored}); key = await openpgp.readKey({armoredKey: publicKeyArmored});