diff options
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/diagnostics/undefined-field.lua | 6 |
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 |