diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-23 19:34:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-23 19:34:57 +0800 |
commit | d2667b5943f41ec16b5e54a4d64c497bef149b59 (patch) | |
tree | 21a9a2686304908b8e5c48014f217279723ac81e /script/fs-utility.lua | |
parent | ad72c1fdc4e8d1fb9afca2dbe10e3c425ead4786 (diff) | |
download | lua-language-server-d2667b5943f41ec16b5e54a4d64c497bef149b59.zip |
cleanup
Diffstat (limited to 'script/fs-utility.lua')
-rw-r--r-- | script/fs-utility.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/script/fs-utility.lua b/script/fs-utility.lua index d2dafdc4..11494e6a 100644 --- a/script/fs-utility.lua +++ b/script/fs-utility.lua @@ -18,6 +18,7 @@ local m = {} ---@param path string function m.loadFile(path) if type(path) ~= 'string' then + ---@diagnostic disable-next-line: undefined-field path = path:string() end local f, e = ioOpen(path, 'rb') @@ -37,6 +38,7 @@ end ---@param content string function m.saveFile(path, content) if type(path) ~= 'string' then + ---@diagnostic disable-next-line: undefined-field path = path:string() end local f, e = ioOpen(path, "wb") |