We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 011543a commit f1e37fbCopy full SHA for f1e37fb
mesecons/util.lua
@@ -59,7 +59,6 @@ end
59
60
function mesecon.rule2metaindex(findrule, allrules)
61
--get the metarule the rule is in, or allrules
62
-
63
if allrules[1].x then
64
return nil
65
end
@@ -78,6 +77,8 @@ function mesecon.rule2metaindex(findrule, allrules)
78
77
79
80
function mesecon.rule2meta(findrule, allrules)
+ if #allrules == 0 then return {} end
81
+
82
local index = mesecon.rule2metaindex(findrule, allrules)
83
if index == nil then
84
0 commit comments