mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Don't leave empty paths with a trailing slash
This commit is contained in:
@@ -239,7 +239,10 @@ exports.add = (directoryPath, metadata) ->
|
||||
|
||||
for entry in cacheToAdd?.folders ? []
|
||||
for folderPath in entry.paths
|
||||
cache.folders["#{directoryPath}#{path.sep}#{folderPath}"] = entry.dependencies
|
||||
if folderPath
|
||||
cache.folders["#{directoryPath}#{path.sep}#{folderPath}"] = entry.dependencies
|
||||
else
|
||||
cache.folders["#{directoryPath}"] = entry.dependencies
|
||||
|
||||
if directoryPath is cache.resourcePath
|
||||
for extension, paths of cacheToAdd?.extensions
|
||||
|
||||
Reference in New Issue
Block a user