From 9be6d67c7e198b3c65746e658ca2dbc8315df477 Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Tue, 22 Jan 2013 12:40:31 -0800 Subject: [PATCH] removing second lookup in requireStylesheet --- src/app/window.coffee | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/window.coffee b/src/app/window.coffee index ea6866ec7..902514bb1 100644 --- a/src/app/window.coffee +++ b/src/app/window.coffee @@ -72,10 +72,7 @@ windowAdditions = requireStylesheet: (path) -> if fullPath = require.resolve(path) window.applyStylesheet(fullPath, fs.read(fullPath)) - for theme in atom.loadedThemes - for themePath, css of theme.stylesheets - matched = true if themePath.match(path) - unless fullPath || matched + unless fullPath throw new Error("Could not find a file at path '#{path}'") removeStylesheet: (path) ->