Schema: Fix value set check

This commit is contained in:
Lars Mueller 2022-05-13 11:50:48 +02:00
parent f9a2797c92
commit d4465f5d9e

@ -295,9 +295,8 @@ function load(self, override, params)
end
end
assert((not self.list) or modlib.table.count(override) == #override, "list")
else
assert((not self.values) or self.values[override], "values")
end
assert((not self.values) or self.values[override], "values")
if self.func then self.func(override) end
return override
end