Merge pull request #48 from jesseleite/fix-clearing-config

Fix clearing project config
This commit is contained in:
ThePrimeagen 2021-03-24 09:23:16 -06:00 committed by GitHub
commit d6c84aafdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,9 @@ local function expand_dir(config)
for k in pairs(projects) do
local expanded_path = Path.new(k):expand()
projects[expanded_path] = projects[k]
projects[k] = nil
if expanded_path ~= k then
projects[k] = nil
end
end
return config