Minor [skip ci]

This commit is contained in:
larabr 2024-02-02 14:48:13 +01:00
parent 81d2e8ce60
commit aabeff2c21

View File

@ -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) {