diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-24 13:46:24 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-24 13:46:24 +0800 |
commit | a723536198162aef5297fa7dc05d20597895bda8 (patch) | |
tree | 117458276365b6d981fdd93168c86bd02b6994a3 /server/src | |
parent | 7b752a3eae03e714911adf5508b9aa27d079d2bb (diff) | |
download | lua-language-server-a723536198162aef5297fa7dc05d20597895bda8.zip |
不再因为多次引用全局变量而忽略警告
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/matcher/diagnostics.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/server/src/matcher/diagnostics.lua b/server/src/matcher/diagnostics.lua index 7871bdca..5e51f9ac 100644 --- a/server/src/matcher/diagnostics.lua +++ b/server/src/matcher/diagnostics.lua @@ -37,9 +37,6 @@ local function searchUndefinedGlobal(results, callback) if not index:find '%l' then goto NEXT_VAR end - if #field >= 3 then - goto NEXT_VAR - end for _, info in ipairs(field) do if info.type == 'set' then goto NEXT_VAR |