Skip to content

Commit 438652d

Browse files
committed
Fix a few minor syntax inaccuracies.
1 parent a7f7fe1 commit 438652d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

middleware.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function(compiler, options) {
1111
if(!options) options = {};
1212
if(options.watchDelay === undefined) options.watchDelay = 200;
1313
if(!options.stats) options.stats = {};
14-
if(!options.stats.context === undefined) options.stats.context = process.cwd();
14+
if(options.stats.context !== undefined) options.stats.context = process.cwd();
1515

1616
// store our files in memory
1717
var files = {};
@@ -111,7 +111,7 @@ module.exports = function(compiler, options) {
111111
localPrefix = "/" + localPrefix.replace(/^https?:\/\/[^\/]+\//, "");
112112
}
113113
// fast exit if another directory requested
114-
if(url.indexOf(localPrefix) != 0) return false;
114+
if(url.indexOf(localPrefix) !== 0) return false;
115115
// get filename from request
116116
var filename = url.substr(localPrefix.length);
117117
return pathJoin(compiler.outputPath, filename);

0 commit comments

Comments
 (0)