diff --git a/src/service/pgp.js b/src/service/pgp.js index fa3d5da..a36d3b8 100644 --- a/src/service/pgp.js +++ b/src/service/pgp.js @@ -42,7 +42,6 @@ class PGP { publicKeyArmored = this.trimKey(publicKeyArmored); const r = await openpgp.readKeys({armoredKeys: publicKeyArmored}); - //const r = await openpgp.key.readArmored(publicKeyArmored); if (r.err) { const error = r.err[0]; log.error('pgp', 'Failed to parse PGP key:\n%s', publicKeyArmored, error); @@ -53,7 +52,6 @@ class PGP { // verify primary key const key = r[0]; - //const primaryKey = key; const now = new Date(); const verifyDate = key.created > now ? key.created : now; try { @@ -159,7 +157,6 @@ class PGP { async filterKeyByUserIds(userIds, armored) { const emails = userIds.map(({email}) => email); const key = await openpgp.readKey({armoredKey: armored}); - //const {keys: [key]} = r; key.users = key.users.filter(({userId}) => !userId || emails.includes(util.normalizeEmail(userId.email))); return key.armor(); }