summaryrefslogtreecommitdiff
path: root/server/src/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-02 10:14:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-02 10:14:04 +0800
commit4876c48747d44ef04ebfe8e475fe137587d68bf2 (patch)
tree92ce5c3b62ab10666b5cbdb4fe6b368613e7d98d /server/src/core
parent64e049862427f3752863b678a243f5332a1a117f (diff)
downloadlua-language-server-4876c48747d44ef04ebfe8e475fe137587d68bf2.zip
不用判未知类型了
Diffstat (limited to 'server/src/core')
-rw-r--r--server/src/core/references.lua3
-rw-r--r--server/src/core/rename.lua2
2 files changed, 0 insertions, 5 deletions
diff --git a/server/src/core/references.lua b/server/src/core/references.lua
index f4aec8ca..f49ebbfc 100644
--- a/server/src/core/references.lua
+++ b/server/src/core/references.lua
@@ -21,9 +21,6 @@ local function parseResult(result, declarat)
positions[#positions+1] = {info.source.start, info.source.finish}
end
end
- elseif tp == 'string' then
- else
- error('Unknow result type:' .. result.type)
end
return positions
end
diff --git a/server/src/core/rename.lua b/server/src/core/rename.lua
index f42da08b..655c1b9a 100644
--- a/server/src/core/rename.lua
+++ b/server/src/core/rename.lua
@@ -35,8 +35,6 @@ local function parseResult(result, source, newName)
for _, info in ipairs(label) do
positions[#positions+1] = {info.source.start, info.source.finish}
end
- else
- error('Unknow result type:' .. result.type)
end
return positions
end