Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Appease the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed May 13, 2021
1 parent 9beb2b8 commit deab424
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/stores/room-list/algorithms/Algorithm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ export class Algorithm extends EventEmitter {
// If we have tags for a room and don't have the room referenced, something went horribly
// wrong - the reference should have been updated above.
if (hasTags && !knownRoomRef && !isSticky) {
throw new Error(`${room.roomId} is missing from room array but is known - trying to find duplicate`);
throw new Error(`${room.roomId} is missing from room array but is known`);
}

// Like above, update the reference to the sticky room if we need to
Expand Down Expand Up @@ -808,7 +808,9 @@ export class Algorithm extends EventEmitter {
if (this.stickyRoom === room) {
if (SettingsStore.getValue("advancedRoomListLogging")) {
// TODO: Remove debug: https://github.com/vector-im/element-web/issues/14602
console.warn(`[RoomListDebug] Received ${cause} update for sticky room ${room.roomId} - ignoring`);
console.warn(
`[RoomListDebug] Received ${cause} update for sticky room ${room.roomId} - ignoring`,
);
}
return false;
}
Expand Down Expand Up @@ -870,7 +872,9 @@ export class Algorithm extends EventEmitter {

if (SettingsStore.getValue("advancedRoomListLogging")) {
// TODO: Remove debug: https://github.com/vector-im/element-web/issues/14602
console.log(`[RoomListDebug] Finished handling ${room.roomId} with cause ${cause} (changed=${changed})`);
console.log(
`[RoomListDebug] Finished handling ${room.roomId} with cause ${cause} (changed=${changed})`,
);
}
return changed;
} finally {
Expand Down

0 comments on commit deab424

Please sign in to comment.