Appease the linter

This commit is contained in:
Travis Ralston 2019-10-09 11:29:01 +01:00
parent 49468c5aab
commit cb20aefea3
2 changed files with 7 additions and 7 deletions

View File

@ -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 <a href="${url}">${roomId}</a> - checking permissions...`;
const text = `Power levels changed in ${url} - checking permissions...`;
let html = `Power levels changed in <a href="${url}">${roomId}</a> - 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 = `<font color="#00cc00">All permissions look OK.</font>`;
const text = "All permissions look OK.";
html = `<font color="#00cc00">All permissions look OK.</font>`;
text = "All permissions look OK.";
await this.client.sendMessage(this.managementRoomId, {
msgtype: "m.notice",
body: text,

View File

@ -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 += "<b>Running: </b>❌ (not started)<br/>";
text += "Running: ❌ (not started)\n";