Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Fixed error in middleware when force option passed
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Nesbitt committed Jan 12, 2014
1 parent 3337060 commit 0b3978f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ module.exports = function(options){
: err);
};

// Force
if (force) { return compile(); }

// Compile to cssPath
var compile = function() {
if (debug) { log('read', cssPath); }
Expand All @@ -128,6 +125,9 @@ module.exports = function(options){
});
};

// Force
if (force) { return compile(); }

// Re-compile on server restart, disregarding
// mtimes since we need to map imports
if (!imports[sassPath]) { return compile(); }
Expand Down

0 comments on commit 0b3978f

Please sign in to comment.