summaryrefslogtreecommitdiff
path: root/src/func.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-10-10 01:22:17 (GMT)
committerMarius Kintel <marius@kintel.net>2012-10-10 01:22:17 (GMT)
commit165c29e159ba660019fc4c5184819ca49adf8bda (patch)
tree15869544e2fd04605129e080443ea299d7d20d37 /src/func.cc
parenteebc87fe1fda369c510f7a7cd22b605f2607612f (diff)
cosmetics
Diffstat (limited to 'src/func.cc')
-rw-r--r--src/func.cc4
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
contact: Jan Huwald // Impressum