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

@ -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";