summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-02-17 14:22:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-02-17 14:22:44 +0800
commitf79fa881d1367796a38882c32997c99d60ed4b78 (patch)
treec0935f57531e3db4f56adbc14ecd80dbf43befa6
parentf9e755e60d995fe64f68fce2c86bd2bc7daa2530 (diff)
downloadlua-language-server-f79fa881d1367796a38882c32997c99d60ed4b78.zip
default of `Or` should be nil
-rw-r--r--script/config/config.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/config/config.lua b/script/config/config.lua
index 88881731..4df62a05 100644
--- a/script/config/config.lua
+++ b/script/config/config.lua
@@ -129,7 +129,7 @@ end, function (self, subkey, subvalue, sep)
self.sep = sep
end)
-register('Or', {}, function (self, value)
+register('Or', nil, function (self, value)
for _, sub in ipairs(self.subs) do
if sub:checker(value) then
return true