From 7b3bdcfb3f62695bb8ad237046285634a701a697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 18 Jun 2022 16:15:26 +0800 Subject: update --- script/core/diagnostics/undefined-field.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'script/core') 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 -- cgit v1.2.3