From c701e2e6d3be032cb5426ccfd601ee9d10b97da0 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 7 Jul 2021 20:55:23 +0100 Subject: [PATCH] Inline members in ctor Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> --- src/crypto/SecretStorage.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/crypto/SecretStorage.ts b/src/crypto/SecretStorage.ts index 404b7901f..b5260ff5a 100644 --- a/src/crypto/SecretStorage.ts +++ b/src/crypto/SecretStorage.ts @@ -71,11 +71,11 @@ export class SecretStorage { // as you don't request any secrets. // A better solution would probably be to split this class up into secret storage and // secret sharing which are really two separate things, even though they share an MSC. - constructor(accountDataClient: IAccountDataClient, cryptoCallbacks: ICryptoCallbacks, matrixClient?: MatrixClient) { - this.accountDataAdapter = accountDataClient; - this.baseApis = matrixClient; - this.cryptoCallbacks = cryptoCallbacks; - } + constructor( + private readonly accountDataClient: IAccountDataClient, + private readonly cryptoCallbacks: ICryptoCallbacks, + private readonly matrixClient?: MatrixClient, + ) {} public async getDefaultKeyId(): Promise { const defaultKey = await this.accountDataAdapter.getAccountDataFromServer(