summaryrefslogtreecommitdiff
path: root/script/config/config.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-07 19:10:51 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-07 19:10:51 +0800
commit8d6d7b1a8c4474f3331d6445031c1a4bad267e06 (patch)
tree90b627e65366e3ae423cc748566e14dc395009fa /script/config/config.lua
parent2acaf8a90b8a0b061711b09f830515ac3861cfd2 (diff)
downloadlua-language-server-8d6d7b1a8c4474f3331d6445031c1a4bad267e06.zip
cleanup
Diffstat (limited to 'script/config/config.lua')
-rw-r--r--script/config/config.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/script/config/config.lua b/script/config/config.lua
index 3761266b..e5552616 100644
--- a/script/config/config.lua
+++ b/script/config/config.lua
@@ -290,11 +290,6 @@ end
function m.watch(callback)
m.watchList[#m.watchList+1] = callback
- if m.inited then
- for key in pairs(Template) do
- callback(key, m.get(key), m.get(key))
- end
- end
end
function m.event(key, value, oldValue)
@@ -307,7 +302,7 @@ function m.init()
if m.inited then
return
end
- m.init = true
+ m.inited = true
for key in pairs(Template) do
m.set(key)
end