mirror of
https://github.com/gchq/CyberChef
synced 2026-01-01 08:03:30 +00:00
remove legacy async api from NodeRecipe
This commit is contained in:
@@ -76,14 +76,14 @@ class NodeRecipe {
|
||||
* @param {NodeDish} dish
|
||||
* @returns {NodeDish}
|
||||
*/
|
||||
async execute(dish) {
|
||||
return await this.opList.reduce(async (prev, curr) => {
|
||||
execute(dish) {
|
||||
return this.opList.reduce((prev, curr) => {
|
||||
// CASE where opLis item is op and args
|
||||
if (curr.hasOwnProperty("op") && curr.hasOwnProperty("args")) {
|
||||
return await curr.op(prev, curr.args);
|
||||
return curr.op(prev, curr.args);
|
||||
}
|
||||
// CASE opList item is just op.
|
||||
return await curr(prev);
|
||||
return curr(prev);
|
||||
}, dish);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user