diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-30 15:26:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-30 15:26:57 +0800 |
commit | 763fc5cc9554ae26d364d4080b070596428bc51a (patch) | |
tree | 29ce7c9946972c4cca2ac1bd097296771695b23f /server/src | |
parent | 21becdcea8546a710bf84d75b7ae1dc437a2f71d (diff) | |
download | lua-language-server-763fc5cc9554ae26d364d4080b070596428bc51a.zip |
修正报错
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/core/definition.lua | 2 |
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 |