summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-30 15:26:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-30 15:26:57 +0800
commit763fc5cc9554ae26d364d4080b070596428bc51a (patch)
tree29ce7c9946972c4cca2ac1bd097296771695b23f
parent21becdcea8546a710bf84d75b7ae1dc437a2f71d (diff)
downloadlua-language-server-763fc5cc9554ae26d364d4080b070596428bc51a.zip
修正报错
-rw-r--r--server/src/core/definition.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/definition.lua b/server/src/core/definition.lua
index fe8db860..a7296bfb 100644
--- a/server/src/core/definition.lua
+++ b/server/src/core/definition.lua
@@ -107,7 +107,7 @@ local function parseLocal(vm, source, lsp)
local value = source:bindValue()
if value and value.uri ~= '' and value.uri ~= vm.uri then
local positions = parseValueCrossFile(vm, source, lsp)
- if #positions > 0 then
+ if positions and #positions > 0 then
return positions
end
end