Skip to content

Commit ee5d128

Browse files
committed
修复一个警告
1 parent b968dc7 commit ee5d128

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

script/workspace/workspace.lua

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,16 @@ function m.getNativeMatcher(scp)
175175
end
176176
end
177177
end
178-
for _, pathVal in ipairs(config.get(scp.uri, 'Lua.workspace.library')) do
179-
local path = pathVal
178+
for _, path in ipairs(config.get(scp.uri, 'Lua.workspace.library')) do
180179
if not addonRepositoryPathUpdated then
181180
addonRepositoryPathUpdated = true
182181
local addonRepositoryPath = config.get(scp.uri, 'Lua.addonRepositoryPath')
183182
files.updateAddonsPath(addonRepositoryPath)
184183
end
185-
path = m.getAbsolutePath(scp.uri, path)
186-
if path then
187-
log.debug('Ignore by library:', path)
188-
debug[#pattern+1] = path
184+
local apath = m.getAbsolutePath(scp.uri, path)
185+
if apath then
186+
log.debug('Ignore by library:', apath)
187+
debug[#pattern+1] = apath
189188
end
190189
end
191190
for _, path in ipairs(config.get(scp.uri, 'Lua.workspace.ignoreDir')) do

0 commit comments

Comments
 (0)