Skip to content

Commit 6327a80

Browse files
committed
fix warning
1 parent 1dd194d commit 6327a80

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

script/workspace/workspace.lua

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,10 @@ function m.getLibraryMatchers(scp)
222222
end
223223

224224
local librarys = {}
225-
for _, pathVal in ipairs(config.get(scp.uri, 'Lua.workspace.library')) do
226-
local path = pathVal
227-
path = m.getAbsolutePath(scp.uri, path)
228-
if path then
229-
librarys[files.normalize(path)] = true
225+
for _, path in ipairs(config.get(scp.uri, 'Lua.workspace.library')) do
226+
local apath = m.getAbsolutePath(scp.uri, path)
227+
if apath then
228+
librarys[files.normalize(apath)] = true
230229
end
231230
end
232231
local metaPaths = scp:get 'metaPaths'

0 commit comments

Comments
 (0)