mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-11-24 14:35:51 +00:00
Minor [skip ci]
This commit is contained in:
parent
81d2e8ce60
commit
aabeff2c21
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user