mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Use map instead of iterating
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user