From 149f59e9be247fac8fba4492aa5bee89da74d11d Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 16 Apr 2020 20:18:27 +0100 Subject: [PATCH] lint --- src/crypto/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/crypto/index.js b/src/crypto/index.js index ff14af3c3..5b6010040 100644 --- a/src/crypto/index.js +++ b/src/crypto/index.js @@ -579,7 +579,11 @@ Crypto.prototype.bootstrapSecretStorage = async function({ await resetCrossSigning(); - if (setupNewSecretStorage || !oldKeyInfo || oldKeyInfo.algorithm !== SECRET_STORAGE_ALGORITHM_V1_AES) { + if ( + setupNewSecretStorage || + !oldKeyInfo || + oldKeyInfo.algorithm !== SECRET_STORAGE_ALGORITHM_V1_AES + ) { // if we already have a usable default SSSS key and aren't resetting SSSS just use it. // otherwise, create a new one // Note: we leave the old SSSS key in place: there could be other secrets using it, in theory.