From b7ac833c88e68ecaa38d1d39be60c330c23b8178 Mon Sep 17 00:00:00 2001 From: "H. Shay" Date: Tue, 5 Nov 2024 16:57:28 -0800 Subject: [PATCH] lint --- src/commands/SetPowerLevelCommand.ts | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/commands/SetPowerLevelCommand.ts b/src/commands/SetPowerLevelCommand.ts index e6fe8fe6..e6234e65 100644 --- a/src/commands/SetPowerLevelCommand.ts +++ b/src/commands/SetPowerLevelCommand.ts @@ -37,11 +37,7 @@ export async function execSetPowerLevelCommand(roomId: string, event: any, mjoln for (const targetRoomId of targetRooms) { try { - const currentLevels = await mjolnir.client.getRoomStateEvent( - targetRoomId, - "m.room.power_levels", - "", - ); + const currentLevels = await mjolnir.client.getRoomStateEvent(targetRoomId, "m.room.power_levels", ""); const currentLevel = currentLevels["users"][mjolnirId]; if (!force) { if (mjolnir.moderators.checkMembership(target)) { @@ -58,10 +54,10 @@ export async function execSetPowerLevelCommand(roomId: string, event: any, mjoln } if (target === mjolnirId && level < currentLevel) { await mjolnir.managementRoomOutput.logMessage( - LogLevel.INFO, - "PowerLevelCommand", - `You are attempting to lower the bot power level: current level ${currentLevel}, requested level ${level}, aborting.`, - ); + LogLevel.INFO, + "PowerLevelCommand", + `You are attempting to lower the bot power level: current level ${currentLevel}, requested level ${level}, aborting.`, + ); return; } await mjolnir.client.setUserPowerLevel(target, targetRoomId, level);