With blocked product being thrown as an error, no need to check once more if blocked

This commit is contained in:
buzz-lightsnack-2007 2024-05-12 17:48:54 +08:00
parent c033fd3286
commit 68beec366a

View file

@ -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, ''));