Async operation code tidy.

This commit is contained in:
n1474335 2017-02-27 17:29:43 +00:00
parent 11e06eeb75
commit 9f75077fe8
5 changed files with 21 additions and 48 deletions

View file

@ -225,8 +225,8 @@ var FlowControl = {
* @returns {Object} The updated state of the recipe.
*/
runWait: function(state) {
var ings = state.opList[state.progress].getIngValues(),
sleepTime = ings[0];
var ings = state.opList[state.progress].getIngValues(),
sleepTime = ings[0];
return new Promise(function(resolve, reject) {
setTimeout(function() {