This commit is contained in:
n1073645 2019-12-04 09:28:22 +00:00
parent ee3e6751be
commit b61fd59b60
3 changed files with 13 additions and 13 deletions

View file

@ -262,15 +262,15 @@ class Magic {
// method on the resulting data, recording the properties of each option.
await Promise.all(sensible.map(async op => {
const opConfig = {
op: op.op,
args: op.args
};
let output;
try {
output = await this._runRecipe([opConfig]);
} catch(err) {
return;
}
op: op.op,
args: op.args
};
let output;
try {
output = await this._runRecipe([opConfig]);
} catch (err) {
return;
}
// If the recipe is repeating and returning the same data, do not continue
if (prevOp && op.op === prevOp.op && _buffersEqual(output, this.inputBuffer)) {
return;
@ -280,7 +280,7 @@ class Magic {
if (_buffersEqual(output, new ArrayBuffer())) {
return;
}
const outputRegexes = OperationConfig[op.op].outputRegexes;
switch (flag) {
case "Input":