ESM: Tidied up FlowControl ops

This commit is contained in:
n1474335 2018-05-21 11:39:10 +00:00
parent 1472f82205
commit 28b24b725f
9 changed files with 6 additions and 34 deletions

View file

@ -45,8 +45,6 @@ class Fork extends Operation {
}
/**
* Fork operation.
*
* @param {Object} state - The current state of the recipe.
* @param {number} state.progress - The current position in the recipe.
* @param {Dish} state.dish - The Dish being operated on.
@ -59,9 +57,7 @@ class Fork extends Operation {
outputType = opList[state.progress].outputType,
input = await state.dish.get(inputType),
ings = opList[state.progress].ingValues,
splitDelim = ings[0],
mergeDelim = ings[1],
ignoreErrors = ings[2],
[splitDelim, mergeDelim, ignoreErrors] = ings,
subOpList = [];
let inputs = [],
i;