no need for keys in the iteration

This commit is contained in:
Bruno Windels 2021-02-23 19:20:58 +01:00
parent 67ddcaa468
commit ef1e867dee

View File

@ -328,7 +328,7 @@ export class Session {
const operations = await opsTxn.operations.getAll(); const operations = await opsTxn.operations.getAll();
const operationsByScope = groupBy(operations, o => o.scope); const operationsByScope = groupBy(operations, o => o.scope);
for (const [, room] of this._rooms) { for (const room of this._rooms.values()) {
let roomOperationsByType; let roomOperationsByType;
const roomOperations = operationsByScope.get(room.id); const roomOperations = operationsByScope.get(room.id);
if (roomOperations) { if (roomOperations) {