summaryrefslogtreecommitdiff
path: root/script/service/telemetry.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-25 21:38:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-25 21:38:57 +0800
commit5ec8ad22d27051507c55d49d6144f08132976215 (patch)
tree75c843f738c0283eb19516293f857d29560d9b3c /script/service/telemetry.lua
parent24f4dfa889cc66bd05223e5d8d36fa19865c772b (diff)
downloadlua-language-server-5ec8ad22d27051507c55d49d6144f08132976215.zip
cleanup
Diffstat (limited to 'script/service/telemetry.lua')
-rw-r--r--script/service/telemetry.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/service/telemetry.lua b/script/service/telemetry.lua
index dac72f3f..8f24b7d1 100644
--- a/script/service/telemetry.lua
+++ b/script/service/telemetry.lua
@@ -74,7 +74,7 @@ end
timer.wait(5, function ()
timer.loop(300, function ()
- if not config.get 'Lua.telemetry.enable' then
+ if not config.get(nil, 'Lua.telemetry.enable') then
return
end
local suc, link = pcall(net.connect, 'tcp', 'moe-moe.love', 11577)
@@ -93,7 +93,7 @@ timer.wait(5, function ()
end
end)()
timer.loop(1, function ()
- if not config.get 'Lua.telemetry.enable' then
+ if not config.get(nil, 'Lua.telemetry.enable') then
return
end
net.update()
@@ -103,7 +103,7 @@ end)
local m = {}
function m.updateConfig()
- if config.get 'Lua.telemetry.enable' ~= nil then
+ if config.get(nil, 'Lua.telemetry.enable') ~= nil then
return
end
if m.hasShowedMessage then