From 68beec366abc811260fc26be82a29be2f824a6bd Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Sun, 12 May 2024 17:48:54 +0800 Subject: [PATCH] With blocked product being thrown as an error, no need to check once more if blocked --- scripts/external/processor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/external/processor.js b/scripts/external/processor.js index 45b4b63..4c86303 100644 --- a/scripts/external/processor.js +++ b/scripts/external/processor.js @@ -54,7 +54,7 @@ export default class processor { throw Error(); }; - if (this.#analyzer.candidate && !this.status[`blocked`]) { + if (this.#analyzer.candidate) { // Remove all markdown formatting. this.product.analysis = JSON.parse(this.#analyzer.candidate.replace(/(```json|```|`)/g, '')); @@ -82,7 +82,7 @@ export default class processor { this.status.error = String(err[KEY]); }); - // Display the error. + // Display the error. this.#notify(-1); }; };