refactoring

This commit is contained in:
Manuel Simon Hirsig
2017-11-07 22:01:30 +01:00
parent 064c03927c
commit 3dbeb1e679
3 changed files with 13 additions and 17 deletions
+1 -1
View File
@@ -525,7 +525,7 @@ function validator(filter)
tinsert(stack, any(args))
end
elseif type == 'filter' then
tinsert(stack, validators[i](record) and true or false)
tinsert(stack, not not validators[i](record))
end
end
return all(stack)