@@ -157,9 +157,8 @@ class KeyRing {
157
157
} ) ;
158
158
}
159
159
await this . fs . promises . mkdir ( this . keysPath , { recursive : true } ) ;
160
- const [ keyPair , recoveryCode ] = await this . setupKeyPair (
161
- setupKeyPairOptions ,
162
- ) ;
160
+ const [ keyPair , recoveryCode ] =
161
+ await this . setupKeyPair ( setupKeyPairOptions ) ;
163
162
const dbKey = await this . setupDbKey ( keyPair ) ;
164
163
const [ passwordHash , passwordSalt ] = await this . setupPasswordHash (
165
164
options . password ,
@@ -280,9 +279,8 @@ class KeyRing {
280
279
await this . rotateLock . withF ( async ( ) => {
281
280
this . logger . info ( 'Changing root key pair password' ) ;
282
281
await this . writeKeyPair ( this . _keyPair ! , password ) ;
283
- const [ passwordHash , passwordSalt ] = await this . setupPasswordHash (
284
- password ,
285
- ) ;
282
+ const [ passwordHash , passwordSalt ] =
283
+ await this . setupPasswordHash ( password ) ;
286
284
bufferUnlock ( this . passwordHash ! . hash ) ;
287
285
bufferUnlock ( this . passwordHash ! . salt ) ;
288
286
bufferLock ( passwordHash , this . strictMemoryLock ) ;
@@ -372,9 +370,8 @@ class KeyRing {
372
370
bufferUnlock ( this . _recoveryCodeData ) ;
373
371
}
374
372
this . _recoveryCodeData = recoveryCodeData as RecoveryCodeLocked ;
375
- const [ passwordHash , passwordSalt ] = await this . setupPasswordHash (
376
- password ,
377
- ) ;
373
+ const [ passwordHash , passwordSalt ] =
374
+ await this . setupPasswordHash ( password ) ;
378
375
bufferUnlock ( this . passwordHash ! . hash ) ;
379
376
bufferUnlock ( this . passwordHash ! . salt ) ;
380
377
bufferLock ( passwordHash , this . strictMemoryLock ) ;
0 commit comments