summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-18 16:15:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-18 16:15:26 +0800
commit7b3bdcfb3f62695bb8ad237046285634a701a697 (patch)
tree0efe10bc304612b6280cb7b36b3950e1d3318187 /script/core
parentf99a3cd8dea446852d8282319d620704eb0e6094 (diff)
downloadlua-language-server-7b3bdcfb3f62695bb8ad237046285634a701a697.zip
update
Diffstat (limited to 'script/core')
-rw-r--r--script/core/diagnostics/undefined-field.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/core/diagnostics/undefined-field.lua b/script/core/diagnostics/undefined-field.lua
index b03838fd..a83241f5 100644
--- a/script/core/diagnostics/undefined-field.lua
+++ b/script/core/diagnostics/undefined-field.lua
@@ -35,10 +35,10 @@ return function (uri, callback)
if node then
local ok
for view in vm.getInfer(node):eachView(uri) do
- if not skipCheckClass[view] then
- ok = true
- break
+ if skipCheckClass[view] then
+ return
end
+ ok = true
end
if not ok then
return