Return paths instead of deferred from project.getFilePaths

It was already being performed synchronously
This commit is contained in:
Kevin Sawicki
2012-10-12 14:45:12 -07:00
parent 38802ba287
commit 19aa192c47
4 changed files with 11 additions and 13 deletions

View File

@@ -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('/')