Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 06917f7

Browse files
fix: lint errors
1 parent ff4f656 commit 06917f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/keychain.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const NIST = {
2727
* @private
2828
*/
2929
const hashName2Forge = {
30-
'sha1': 'sha1',
30+
sha1: 'sha1',
3131
'sha2-256': 'sha256',
3232
'sha2-512': 'sha512'
3333
}
@@ -135,8 +135,9 @@ class Keychain {
135135

136136
// Get the hashing alogorithm
137137
const hashAlgorithm = hashName2Forge[opts.dek.hash]
138-
if (!hashAlgorithm)
138+
if (!hashAlgorithm) {
139139
throw new Error(`dek.hash '${opts.dek.hash}' is unknown or not supported`)
140+
}
140141

141142
// Create the derived encrypting key
142143
let dek = forge.pkcs5.pbkdf2(

0 commit comments

Comments
 (0)