From aabeff2c21896594339fdbf1981985ab1b0d5b47 Mon Sep 17 00:00:00 2001 From: larabr <7375870+larabr@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:48:13 +0100 Subject: [PATCH] Minor [skip ci] --- src/key/key.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/key/key.js b/src/key/key.js index 1662ca5a..3c7475ad 100644 --- a/src/key/key.js +++ b/src/key/key.js @@ -257,8 +257,8 @@ class Key { * @async */ async getSigningKey(keyID = null, date = new Date(), userID = {}, config = defaultConfig) { - const primaryKey = this.keyPacket; await this.verifyPrimaryKey(date, userID, config); + const primaryKey = this.keyPacket; try { helper.checkKeyRequirements(primaryKey, config); } catch (err) { @@ -316,8 +316,8 @@ class Key { * @async */ async getEncryptionKey(keyID, date = new Date(), userID = {}, config = defaultConfig) { - const primaryKey = this.keyPacket; await this.verifyPrimaryKey(date, userID, config); + const primaryKey = this.keyPacket; try { helper.checkKeyRequirements(primaryKey, config); } catch (err) {