check addToBodyAndMeta
This commit is contained in:
parent
d39f705887
commit
e51da5db9c
@ -220,7 +220,7 @@ public class TbMathNode implements TbNode {
|
|||||||
private TbMsg addToBodyAndMeta(TbMsg msg, Optional<ObjectNode> msgBodyOpt, double result, TbMathResult mathResultDef) {
|
private TbMsg addToBodyAndMeta(TbMsg msg, Optional<ObjectNode> msgBodyOpt, double result, TbMathResult mathResultDef) {
|
||||||
TbMsg tmpMsg = msg;
|
TbMsg tmpMsg = msg;
|
||||||
if (mathResultDef.isAddToBody()) {
|
if (mathResultDef.isAddToBody()) {
|
||||||
tmpMsg = addToBody(msg, mathResultDef, msgBodyOpt, result);
|
tmpMsg = addToBody(tmpMsg, mathResultDef, msgBodyOpt, result);
|
||||||
}
|
}
|
||||||
if (mathResultDef.isAddToMetadata()) {
|
if (mathResultDef.isAddToMetadata()) {
|
||||||
tmpMsg = addToMeta(tmpMsg, mathResultDef, result);
|
tmpMsg = addToMeta(tmpMsg, mathResultDef, result);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user