зеркало из https://github.com/mozilla/normandy.git
Mythmon has better style than me.
This commit is contained in:
Родитель
991ca0837c
Коммит
9003fa8dd2
|
@ -154,10 +154,7 @@ fetchRecipes().then((recipes) => {
|
|||
let chain = Promise.resolve();
|
||||
|
||||
for (let recipe of recipes) {
|
||||
let cb = function(recipeToRun) {
|
||||
return runRecipe(recipeToRun);
|
||||
};
|
||||
chain.then(cb.bind(null, recipe));
|
||||
chain.then(runRecipe.bind(null, recipe));
|
||||
}
|
||||
|
||||
return chain;
|
||||
|
|
Загрузка…
Ссылка в новой задаче