diff --git a/src/ExprNode.cc b/src/ExprNode.cc index 9e83dbc74da5ac2fbfd0c563d8196d0f43f67f18..47a27f78281ed1e6b692d55fdb13beb16b358e4e 100644 --- a/src/ExprNode.cc +++ b/src/ExprNode.cc @@ -804,10 +804,7 @@ NumConstNode::differentiateForwardVars([[maybe_unused]] const vector<string>& su bool NumConstNode::isNumConstNodeEqualTo(double value) const { - if (datatree.num_constants.getDouble(id) == value) - return true; - else - return false; + return datatree.num_constants.getDouble(id) == value; } bool