make type explicit

This commit is contained in:
Bruno Windels 2021-05-06 15:23:33 +02:00
parent 00d8f81bdd
commit a12f10dc3c

View file

@ -83,7 +83,7 @@ export class RoomEncryption {
} }
async writeMemberChanges(memberChanges, txn, log) { async writeMemberChanges(memberChanges, txn, log) {
let shouldFlush; let shouldFlush = false;
const memberChangesArray = Array.from(memberChanges.values()); const memberChangesArray = Array.from(memberChanges.values());
if (memberChangesArray.some(m => m.hasLeft)) { if (memberChangesArray.some(m => m.hasLeft)) {
log.log({ log.log({