💄 Use Array::filter instead of for/in/when

This commit is contained in:
Kevin Sawicki
2014-02-10 13:06:35 -08:00
parent f9f2688468
commit 8425c15cd7

View File

@@ -95,7 +95,7 @@ class ThemeManager
if themePath = @packageManager.resolvePackagePath(themeName)
themePaths.push(path.join(themePath, AtomPackage.stylesheetsDir))
themePath for themePath in themePaths when fs.isDirectorySync(themePath)
themePaths.filter (themePath) -> fs.isDirectorySync(themePath)
# Public: Returns the {String} path to the user's stylesheet under ~/.atom
getUserStylesheetPath: ->