mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 06:55:08 -04:00
Fixed the magic bug where it wouldnt recommended operations that resulted in lists of files
This commit is contained in:
parent
798f013219
commit
86db43e6dd
4 changed files with 29 additions and 7 deletions
|
@ -403,7 +403,7 @@ class Magic {
|
|||
await recipe.execute(dish);
|
||||
// Return an empty buffer if the recipe did not run to completion
|
||||
if (recipe.lastRunOp === recipe.opList[recipe.opList.length - 1]) {
|
||||
return dish.get(Dish.ARRAY_BUFFER);
|
||||
return await dish.get(Dish.ARRAY_BUFFER);
|
||||
} else {
|
||||
return new ArrayBuffer();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue