summaryrefslogtreecommitdiff
path: root/script/file-uri.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-23 17:38:38 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-23 17:38:38 +0800
commit61d9a99cb32487defbf72486d079e9c7324e4e51 (patch)
treedc1f81dfb50ac5e0254ededb101611f8bf48c6ac /script/file-uri.lua
parent5d46db21e707be3b23655ef7fc1dfc41c36464a2 (diff)
downloadlua-language-server-61d9a99cb32487defbf72486d079e9c7324e4e51.zip
update
Diffstat (limited to 'script/file-uri.lua')
-rw-r--r--script/file-uri.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/script/file-uri.lua b/script/file-uri.lua
index ccd47156..877d2a1c 100644
--- a/script/file-uri.lua
+++ b/script/file-uri.lua
@@ -24,9 +24,6 @@ local m = {}
---@param path string
---@return uri uri
function m.encode(path)
- if not path then
- return nil
- end
local authority = ''
if platform.OS == 'Windows' then
path = path:gsub('\\', '/')