mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
💄 Use Array::filter instead of for/in/when
This commit is contained in:
@@ -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: ->
|
||||
|
||||
Reference in New Issue
Block a user