From 076f450ec7c498abd48196d27e6a3c94a2dabb5f Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 22 Oct 2021 18:01:26 +0200 Subject: [PATCH] this can be const --- src/matrix/e2ee/megolm/Decryption.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/e2ee/megolm/Decryption.ts b/src/matrix/e2ee/megolm/Decryption.ts index fdca3232..7ab0e15a 100644 --- a/src/matrix/e2ee/megolm/Decryption.ts +++ b/src/matrix/e2ee/megolm/Decryption.ts @@ -137,7 +137,7 @@ export class Decryption { * The key won't be persisted yet, you need to call RoomKey.write for that. */ roomKeysFromDeviceMessages(decryptionResults: DecryptionResult[], log: LogItem): IIncomingRoomKey[] { - let keys: IIncomingRoomKey[] = []; + const keys: IIncomingRoomKey[] = []; for (const dr of decryptionResults) { if (dr.event?.type !== "m.room_key" || dr.event.content?.algorithm !== MEGOLM_ALGORITHM) { continue;