Quick fix for empty recipe error. Changed deflate back to compression module

This commit is contained in:
d98762625 2018-04-09 15:21:09 +01:00
parent 76f27dbcdb
commit bbc580e71b
5 changed files with 9 additions and 7 deletions

View file

@ -189,9 +189,11 @@ class Recipe {
}
// Present the results of the final operation
// TODO try/catch
output = await lastRunOp.present(output);
dish.set(output, lastRunOp.presentType);
if (lastRunOp) {
// TODO try/catch
output = await lastRunOp.present(output);
dish.set(output, lastRunOp.presentType);
}
log.debug("Recipe complete");
return this.opList.length;