mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
ESM: Tidied up FlowControl ops
This commit is contained in:
parent
1472f82205
commit
28b24b725f
9 changed files with 6 additions and 34 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue