Removed whitespace changes
This commit is contained in:
parent
a357d2a1be
commit
3ad39889a9
@ -190,7 +190,6 @@ class Recipe {
|
|||||||
for (let i = startFrom; i < this.opList.length; i++) {
|
for (let i = startFrom; i < this.opList.length; i++) {
|
||||||
op = this.opList[i];
|
op = this.opList[i];
|
||||||
log.debug(`[${i}] ${op.name} ${JSON.stringify(op.ingValues)}`);
|
log.debug(`[${i}] ${op.name} ${JSON.stringify(op.ingValues)}`);
|
||||||
|
|
||||||
if (op.disabled) {
|
if (op.disabled) {
|
||||||
log.debug("Operation is disabled, skipping");
|
log.debug("Operation is disabled, skipping");
|
||||||
continue;
|
continue;
|
||||||
@ -201,7 +200,6 @@ class Recipe {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
if (op.name != "Comment") {
|
if (op.name != "Comment") {
|
||||||
input = await dish.get(op.inputType);
|
input = await dish.get(op.inputType);
|
||||||
}
|
}
|
||||||
@ -234,12 +232,10 @@ class Recipe {
|
|||||||
output = await op.run(input, op.ingValues);
|
output = await op.run(input, op.ingValues);
|
||||||
dish.set(output, op.outputType);
|
dish.set(output, op.outputType);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if comment is the lastRunOp, the output we want is the previous command, not necessarily a String
|
// if comment is the lastRunOp, the output we want is the previous command, not necessarily a String
|
||||||
if (op.name != "Comment"){
|
if (op.name != "Comment"){
|
||||||
this.lastRunOp = op;
|
this.lastRunOp = op;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// Return expected errors as output
|
// Return expected errors as output
|
||||||
if (err instanceof OperationError ||
|
if (err instanceof OperationError ||
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user