mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -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
|
@ -44,8 +44,6 @@ class Register extends Operation {
|
|||
}
|
||||
|
||||
/**
|
||||
* Register 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.
|
||||
|
@ -54,9 +52,7 @@ class Register extends Operation {
|
|||
*/
|
||||
async run(state) {
|
||||
const ings = state.opList[state.progress].ingValues;
|
||||
const extractorStr = ings[0];
|
||||
const i = ings[1];
|
||||
const m = ings[2];
|
||||
const [extractorStr, i, m] = ings;
|
||||
|
||||
let modifiers = "";
|
||||
if (i) modifiers += "i";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue