Skip to content

Commit

Permalink
[优化] 小驼峰命名法规范本地变量名
Browse files Browse the repository at this point in the history
  • Loading branch information
Rcklos committed Nov 4, 2024
1 parent 466aaba commit 791e8fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/vm/type.lua
Original file line number Diff line number Diff line change
Expand Up @@ -655,10 +655,10 @@ function vm.getTableValue(uri, tnode, knode, inversion)
end
end
end
local N = config.get(uri, "Lua.type.inferTableSize")
local inferSize = config.get(uri, "Lua.type.inferTableSize")
if field.type == 'tableexp'
and field.value
and field.tindex <= N then
and field.tindex <= inferSize then
if inversion then
if vm.isSubType(uri, 'integer', knode) then
result:merge(vm.compileNode(field.value))
Expand Down

0 comments on commit 791e8fe

Please sign in to comment.