From 044396d41a851182cf5a29324213c6baf03bf4f1 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 23 Apr 2013 15:58:39 -0700 Subject: [PATCH] Remove unneeded empty array fallback --- src/app/atom-package.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/atom-package.coffee b/src/app/atom-package.coffee index 3fee5ede3..4bcfddfbd 100644 --- a/src/app/atom-package.coffee +++ b/src/app/atom-package.coffee @@ -68,7 +68,7 @@ class AtomPackage extends Package if @metadata.keymaps @metadata.keymaps.map (name) -> fsUtils.resolve(keymapsDirPath, name, ['json', 'cson', '']) else - fsUtils.list(keymapsDirPath, ['cson', 'json']) ? [] + fsUtils.list(keymapsDirPath, ['cson', 'json']) loadStylesheets: -> @stylesheets = @getStylesheetPaths().map (path) -> [path, loadStylesheet(path)] @@ -78,18 +78,18 @@ class AtomPackage extends Package if @metadata.stylesheets @metadata.stylesheets.map (name) -> fsUtils.resolve(stylesheetDirPath, name, ['css', 'less', '']) else - fsUtils.list(stylesheetDirPath, ['css', 'less']) ? [] + fsUtils.list(stylesheetDirPath, ['css', 'less']) loadGrammars: -> @grammars = [] grammarsDirPath = fsUtils.join(@path, 'grammars') - for grammarPath in fsUtils.list(grammarsDirPath, ['.cson', '.json']) ? [] + for grammarPath in fsUtils.list(grammarsDirPath, ['.cson', '.json']) @grammars.push(TextMateGrammar.loadSync(grammarPath)) loadScopedProperties: -> @scopedProperties = [] scopedPropertiessDirPath = fsUtils.join(@path, 'scoped-properties') - for scopedPropertiesPath in fsUtils.list(scopedPropertiessDirPath, ['.cson', '.json']) ? [] + for scopedPropertiesPath in fsUtils.list(scopedPropertiessDirPath, ['.cson', '.json']) for selector, properties of fsUtils.readObject(scopedPropertiesPath) @scopedProperties.push([scopedPropertiesPath, selector, properties])