Use map instead of iterating

This commit is contained in:
Kevin Sawicki
2013-05-16 09:42:09 -07:00
parent e9f9c6e777
commit e2821cbea8

View File

@@ -133,10 +133,9 @@ class FuzzyFinderView extends SelectList
@miniEditor.setText(currentWord)
setArray: (paths) ->
projectRelativePaths = []
for path in paths
projectRelativePaths = paths.map (path) ->
projectRelativePath = project.relativize(path)
projectRelativePaths.push({path, projectRelativePath})
{path, projectRelativePath}
super(projectRelativePaths)