Skip to content

Commit a29d931

Browse files
authored
Update compiler.lua
1 parent e930179 commit a29d931

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

script/vm/compiler.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ local function compileFunctionParam(func, source)
10551055
local derviationParam = config.get(guide.getUri(func), 'Lua.type.inferParamType')
10561056
if derviationParam and func.parent.type == 'local' and func.parent.ref then
10571057
local refs = func.parent.ref
1058-
local found
1058+
local found
10591059
for _, ref in ipairs(refs) do
10601060
if ref.parent.type ~= 'call' then
10611061
goto continue
@@ -1069,13 +1069,13 @@ local function compileFunctionParam(func, source)
10691069
local callerArg = caller.args[index]
10701070
if callerArg then
10711071
vm.setNode(source, vm.compileNode(callerArg))
1072-
finded = true
1072+
found = true
10731073
end
10741074
end
10751075
end
10761076
::continue::
10771077
end
1078-
return finded
1078+
return found
10791079
end
10801080
end
10811081

0 commit comments

Comments
 (0)