summaryrefslogtreecommitdiff
path: root/src/core/common/Function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/common/Function.cpp')
-rw-r--r--src/core/common/Function.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/common/Function.cpp b/src/core/common/Function.cpp
index 6aedb7b..5a4359d 100644
--- a/src/core/common/Function.cpp
+++ b/src/core/common/Function.cpp
@@ -23,12 +23,9 @@ namespace ousia {
Variant::arrayType &ValidatingFunction::validate(Variant::arrayType &args) const
{
- // If an argument descriptor was given, use it to validate the arguments.
- // Throw any violation as exception.
- if (checkArguments) {
- ExceptionLogger logger;
- arguments.validateArray(args, logger);
- }
+ // Validate the given arguments. Throw any violation as exception.
+ ExceptionLogger logger;
+ arguments.validateArray(args, logger);
return args;
}
}