mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 05:36:06 +00:00
Appease the linter
This commit is contained in:
parent
c0365416fa
commit
7a015a9f06
@ -23,11 +23,11 @@ export async function execListProtectedRooms(roomId: string, event: any, mjolnir
|
|||||||
let text = `Protected rooms (${Object.keys(mjolnir.protectedRooms).length}):\n`;
|
let text = `Protected rooms (${Object.keys(mjolnir.protectedRooms).length}):\n`;
|
||||||
|
|
||||||
let hasRooms = false;
|
let hasRooms = false;
|
||||||
for (const roomId in mjolnir.protectedRooms) {
|
for (const protectedRoomId in mjolnir.protectedRooms) {
|
||||||
hasRooms = true;
|
hasRooms = true;
|
||||||
|
|
||||||
const roomUrl = mjolnir.protectedRooms[roomId];
|
const roomUrl = mjolnir.protectedRooms[protectedRoomId];
|
||||||
html += `<li><a href="${roomUrl}">${roomId}</a></li>`;
|
html += `<li><a href="${roomUrl}">${protectedRoomId}</a></li>`;
|
||||||
text += `* ${roomUrl}\n`;
|
text += `* ${roomUrl}\n`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user