mirror of
https://github.com/atom/atom.git
synced 2026-02-08 05:35:04 -05:00
Return paths instead of deferred from project.getFilePaths
It was already being performed synchronously
This commit is contained in:
@@ -51,8 +51,6 @@ class Project
|
||||
@rootDirectory
|
||||
|
||||
getFilePaths: ->
|
||||
deferred = $.Deferred()
|
||||
|
||||
filePaths = []
|
||||
|
||||
onFile = (path) =>
|
||||
@@ -62,8 +60,7 @@ class Project
|
||||
return not @ignoreDirectory(path)
|
||||
|
||||
fs.traverseTree @getPath(), onFile, onDirectory
|
||||
deferred.resolve filePaths
|
||||
deferred
|
||||
filePaths
|
||||
|
||||
ignoreDirectory: (path) ->
|
||||
lastSlash = path.lastIndexOf('/')
|
||||
|
||||
Reference in New Issue
Block a user