Skip to content

Commit 3534367

Browse files
committed
fix
1 parent cf4e49b commit 3534367

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: script/core/diagnostics/init.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ local function getSeverity(uri, name)
6565
local groupLevel = 999
6666
for _, groupName in ipairs(groups) do
6767
local gseverity = groupSeverity[groupName]
68-
if gseverity ~= 'Fallback' then
68+
if gseverity and gseverity ~= 'Fallback' then
6969
groupLevel = math.min(groupLevel, define.DiagnosticSeverity[gseverity])
7070
end
7171
end
@@ -94,7 +94,7 @@ local function getStatus(uri, name)
9494
local groupLevel = 0
9595
for _, groupName in ipairs(groups) do
9696
local gstatus = groupStatus[groupName]
97-
if gstatus ~= 'Fallback' then
97+
if gstatus and gstatus ~= 'Fallback' then
9898
groupLevel = math.max(groupLevel, define.DiagnosticFileStatus[gstatus])
9999
end
100100
end

0 commit comments

Comments
 (0)