Skip to content

Commit 9035afd

Browse files
NeOzaytomlau10
andauthored
Update script/core/diagnostics/missing-fields.lua
Co-authored-by: Tom Lau <tomandfatboy@gmail.com>
1 parent f706a96 commit 9035afd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

script/core/diagnostics/missing-fields.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,9 @@ return function (uri, callback)
3737
end
3838

3939
local warnings = {}
40-
for _, samedefs in pairs(sortedDefs) do
40+
for className, samedefs in pairs(sortedDefs) do
4141
local missedKeys = {}
42-
local className
4342
for _, def in ipairs(samedefs) do
44-
className = def.class[1]
4543
if not def.fields or #def.fields == 0 then
4644
goto continue
4745
end

0 commit comments

Comments
 (0)