From 0ce37981bfa8e05a5e167ea9f05fb75e06b3143f Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Sun, 28 Apr 2024 16:04:59 -0400 Subject: [PATCH] why?? --- public/scripts/slash-commands/SlashCommandClosure.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/scripts/slash-commands/SlashCommandClosure.js b/public/scripts/slash-commands/SlashCommandClosure.js index 5ebdd1873..9442425ca 100644 --- a/public/scripts/slash-commands/SlashCommandClosure.js +++ b/public/scripts/slash-commands/SlashCommandClosure.js @@ -232,9 +232,8 @@ export class SlashCommandClosure { ; } - let abortResult; - // eslint-disable-next-line no-cond-assign - if (abortResult = this.testAbortController()) { + let abortResult = this.testAbortController(); + if (abortResult) { return abortResult; } this.scope.pipe = await executor.command.callback(args, value ?? '');