diff --git a/src/Mjolnir.ts b/src/Mjolnir.ts
index 5913e87..b1233e2 100644
--- a/src/Mjolnir.ts
+++ b/src/Mjolnir.ts
@@ -171,7 +171,7 @@ export class Mjolnir {
this.banLists = banLists;
}
- public async verifyPermissions(verbose: boolean = true) {
+ public async verifyPermissions(verbose = true) {
const errors: RoomUpdateError[] = [];
for (const roomId of Object.keys(this.protectedRooms)) {
errors.push(...(await this.verifyPermissionsIn(roomId)));
@@ -242,7 +242,7 @@ export class Mjolnir {
return errors;
}
- public async syncLists(verbose: boolean = true) {
+ public async syncLists(verbose = true) {
for (const list of this.banLists) {
await list.updateList();
}
@@ -300,8 +300,8 @@ export class Mjolnir {
if (event['type'] === 'm.room.power_levels' && event['state_key'] === '') {
// power levels were updated - recheck permissions
const url = this.protectedRooms[roomId];
- const html = `Power levels changed in ${roomId} - checking permissions...`;
- const text = `Power levels changed in ${url} - checking permissions...`;
+ let html = `Power levels changed in ${roomId} - checking permissions...`;
+ let text = `Power levels changed in ${url} - checking permissions...`;
await this.client.sendMessage(this.managementRoomId, {
msgtype: "m.notice",
body: text,
@@ -311,8 +311,8 @@ export class Mjolnir {
const errors = await this.verifyPermissionsIn(roomId);
const hadErrors = await this.printActionResult(errors);
if (!hadErrors) {
- const html = `All permissions look OK.`;
- const text = "All permissions look OK.";
+ html = `All permissions look OK.`;
+ text = "All permissions look OK.";
await this.client.sendMessage(this.managementRoomId, {
msgtype: "m.notice",
body: text,
diff --git a/src/commands/StatusCommand.ts b/src/commands/StatusCommand.ts
index e902372..209f1cd 100644
--- a/src/commands/StatusCommand.ts
+++ b/src/commands/StatusCommand.ts
@@ -24,7 +24,7 @@ export async function execStatusCommand(roomId: string, event: any, mjolnir: Mjo
const state = mjolnir.state;
- switch(state) {
+ switch (state) {
case STATE_NOT_STARTED:
html += "Running: ❌ (not started)
";
text += "Running: ❌ (not started)\n";