From 4876c48747d44ef04ebfe8e475fe137587d68bf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 2 Jan 2019 10:14:04 +0800 Subject: =?UTF-8?q?=E4=B8=8D=E7=94=A8=E5=88=A4=E6=9C=AA=E7=9F=A5=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/references.lua | 3 --- server/src/core/rename.lua | 2 -- 2 files changed, 5 deletions(-) (limited to 'server/src/core') 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 -- cgit v1.2.3