Skip to content

Commit c701e2e

Browse files
dbkrt3chguy
andauthored
Inline members in ctor
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 11b490c commit c701e2e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/crypto/SecretStorage.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ export class SecretStorage {
7171
// as you don't request any secrets.
7272
// A better solution would probably be to split this class up into secret storage and
7373
// secret sharing which are really two separate things, even though they share an MSC.
74-
constructor(accountDataClient: IAccountDataClient, cryptoCallbacks: ICryptoCallbacks, matrixClient?: MatrixClient) {
75-
this.accountDataAdapter = accountDataClient;
76-
this.baseApis = matrixClient;
77-
this.cryptoCallbacks = cryptoCallbacks;
78-
}
74+
constructor(
75+
private readonly accountDataClient: IAccountDataClient,
76+
private readonly cryptoCallbacks: ICryptoCallbacks,
77+
private readonly matrixClient?: MatrixClient,
78+
) {}
7979

8080
public async getDefaultKeyId(): Promise<string> {
8181
const defaultKey = await this.accountDataAdapter.getAccountDataFromServer(

0 commit comments

Comments
 (0)