summaryrefslogtreecommitdiff
path: root/lib/lace/engine.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lace/engine.lua')
-rw-r--r--lib/lace/engine.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/lace/engine.lua b/lib/lace/engine.lua
index 8e93ae0..dcf8a68 100644
--- a/lib/lace/engine.lua
+++ b/lib/lace/engine.lua
@@ -68,11 +68,7 @@ local function run_ruleset(ruleset, exec_context)
return nil, ret
end
- if ret == "" then
- -- Empty string indicates no error but no result, we don't like
- -- that here so we return an error
- return false, "Ruleset did not explicitly allow or deny"
- end
+ assert(ret ~= "", "It should not be possible for a ruleset to fail to return a result")
if type(msg) == "table" then
-- TODO: Extract position information etc from error and