diff options
author | NeOzay <69015205+NeOzay@users.noreply.github.com> | 2024-07-28 18:20:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-28 18:20:49 +0200 |
commit | 9035afd4b4fb548c2d88c0a4e3ec566cb0c2cc11 (patch) | |
tree | 552925e778c92980e9c992e2c16b09af4c105b12 | |
parent | f706a965515b4a155deabf2c3f506a2ccf444718 (diff) | |
download | lua-language-server-9035afd4b4fb548c2d88c0a4e3ec566cb0c2cc11.zip |
Update script/core/diagnostics/missing-fields.lua
Co-authored-by: Tom Lau <tomandfatboy@gmail.com>
-rw-r--r-- | script/core/diagnostics/missing-fields.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/script/core/diagnostics/missing-fields.lua b/script/core/diagnostics/missing-fields.lua index 18b561ee..d332b091 100644 --- a/script/core/diagnostics/missing-fields.lua +++ b/script/core/diagnostics/missing-fields.lua @@ -37,11 +37,9 @@ return function (uri, callback) end local warnings = {} - for _, samedefs in pairs(sortedDefs) do + for className, samedefs in pairs(sortedDefs) do local missedKeys = {} - local className for _, def in ipairs(samedefs) do - className = def.class[1] if not def.fields or #def.fields == 0 then goto continue end |