diff --git a/services/minecraft/src/debug/web/app.js b/services/minecraft/src/debug/web/app.js index 48411b057..8d86c804b 100644 --- a/services/minecraft/src/debug/web/app.js +++ b/services/minecraft/src/debug/web/app.js @@ -1143,7 +1143,7 @@ class ToolsPanel { } value = Number.parseFloat(value) - if (isNaN(value)) { + if (Number.isNaN(value)) { this.showResult(tool.name, { error: `Invalid number for ${paramName}` }, true) return } @@ -1186,7 +1186,7 @@ class ToolsPanel { } handleResult(data) { - const { toolName, result, error } = data + const { toolName, error } = data this.executingTools.delete(toolName) this.updateCardState(toolName, error ? 'error' : 'success') diff --git a/services/satori-bot/src/core/loop/scheduler.ts b/services/satori-bot/src/core/loop/scheduler.ts index 499171572..8c329cd64 100644 --- a/services/satori-bot/src/core/loop/scheduler.ts +++ b/services/satori-bot/src/core/loop/scheduler.ts @@ -226,8 +226,6 @@ export async function onMessageArrival( } isQueueConsumerRunning = true - const log = botContext.logger - try { while (botContext.eventQueue.length > 0) { const currMsg = botContext.eventQueue[0]