From 2b31b3f1342d591cdf69860f633914e950d764f5 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Tue, 17 Jul 2012 16:18:55 +0100 Subject: ENGINE: Now not possible to have no result --- lib/lace/engine.lua | 6 +----- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.1