diff options
Diffstat (limited to 'src/func.cc')
-rw-r--r-- | src/func.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/func.cc b/src/func.cc index 6c5f070..e427bf2 100644 --- a/src/func.cc +++ b/src/func.cc @@ -63,9 +63,7 @@ Value Function::evaluate(const Context *ctx, { Context c(ctx); c.args(argnames, argexpr, call_argnames, call_argvalues); - if (expr) - return expr->evaluate(&c); - return Value(); + return expr ? expr->evaluate(&c) : Value(); } std::string Function::dump(const std::string &indent, const std::string &name) const |