summaryrefslogtreecommitdiff
path: root/script/service
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-15 11:17:47 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-15 11:17:47 +0800
commitf3ec5825e3c6a8090a020097e088f26718c316bb (patch)
tree2c62691b1b3e5e664c963659ae664e247c25cab4 /script/service
parent7203c44d10a6bf22e493f0b816fcbd5ebd475449 (diff)
downloadlua-language-server-f3ec5825e3c6a8090a020097e088f26718c316bb.zip
fix
Diffstat (limited to 'script/service')
-rw-r--r--script/service/telemetry.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/service/telemetry.lua b/script/service/telemetry.lua
index 2434cf1a..d04662b9 100644
--- a/script/service/telemetry.lua
+++ b/script/service/telemetry.lua
@@ -9,7 +9,7 @@ local tokenPath = (ROOT / 'log' / 'token'):string()
local token = util.loadFile(tokenPath)
if not token then
token = ('%016X'):format(math.random(0, math.maxinteger))
- util.saveFile(token)
+ util.saveFile(tokenPath, token)
end
local function pushClient(link)