Skip to content

Commit

Permalink
Appease the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Jan 21, 2020
1 parent c036541 commit 7a015a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/ListProtectedRoomsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export async function execListProtectedRooms(roomId: string, event: any, mjolnir
let text = `Protected rooms (${Object.keys(mjolnir.protectedRooms).length}):\n`;

let hasRooms = false;
for (const roomId in mjolnir.protectedRooms) {
for (const protectedRoomId in mjolnir.protectedRooms) {
hasRooms = true;

const roomUrl = mjolnir.protectedRooms[roomId];
html += `<li><a href="${roomUrl}">${roomId}</a></li>`;
const roomUrl = mjolnir.protectedRooms[protectedRoomId];
html += `<li><a href="${roomUrl}">${protectedRoomId}</a></li>`;
text += `* ${roomUrl}\n`;
}

Expand Down

0 comments on commit 7a015a9

Please sign in to comment.