mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Prune paths that are files
This avoids an extra call to isDirectory for each path that has already been determined to be a file and therefore not a directory.
This commit is contained in:
@@ -55,6 +55,7 @@ class Project
|
||||
if @ignorePath(path)
|
||||
prune()
|
||||
else if fs.isFile(path)
|
||||
prune()
|
||||
filePaths.push @relativize(path)
|
||||
|
||||
deferred.resolve filePaths
|
||||
|
||||
Reference in New Issue
Block a user