With blocked product being thrown as an error, no need to check once more if blocked
This commit is contained in:
parent
c033fd3286
commit
68beec366a
1 changed files with 2 additions and 2 deletions
4
scripts/external/processor.js
vendored
4
scripts/external/processor.js
vendored
|
@ -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);
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue