Remove unnecessary, accidentally inverted condition for room ordering (#10178)

pull/28217/head
Janne Mareike Koschinski 2023-02-16 15:54:32 +01:00 committed by GitHub
parent 73360026ab
commit f7bea2cae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -104,7 +104,6 @@ export class ImportanceAlgorithm extends OrderingAlgorithm {
// Every other sorting type affects the categories, not the whole tag.
const categorized = this.categorizeRooms(rooms);
for (const category of Object.keys(categorized)) {
if (!isNaN(Number(category))) continue;
const notificationColor = category as unknown as NotificationColor;
const roomsToOrder = categorized[notificationColor];
categorized[notificationColor] = sortRoomsWithAlgorithm(