Navigation Menu

Skip to content

Commit

Permalink
Remove needless code
Browse files Browse the repository at this point in the history
"exports" is an alias of "module.exports". If we replace
"module.exports", we can't use "exports". "exports = module.exports"
re-create an alias but "exports" isn't used later. So the code isn't
needless.
  • Loading branch information
kou committed Apr 7, 2014
1 parent e00e446 commit 6bc3d25
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/response-cache/cache.js
Expand Up @@ -84,4 +84,4 @@ Cache.prototype = {
};
}
};
exports = module.exports = Cache;
module.exports = Cache;
2 changes: 1 addition & 1 deletion lib/response-cache/entry.js
Expand Up @@ -48,4 +48,4 @@ Entry.prototype = {
callback(this.data);
}
};
exports = module.exports = Entry;
module.exports = Entry;
2 changes: 1 addition & 1 deletion lib/response-cache/index.js
Expand Up @@ -17,7 +17,7 @@ function sendCachedResponse(response, cached) {
response.end();
}

exports = module.exports = function(options) {
module.exports = function(options) {
var cache = new Cache(options);

return function(request, response, next) {
Expand Down
2 changes: 1 addition & 1 deletion lib/response-cache/rule.js
Expand Up @@ -14,4 +14,4 @@ Rule.prototype = {
return this.regex.test(request.url);
}
};
exports = module.exports = Rule;
module.exports = Rule;

0 comments on commit 6bc3d25

Please sign in to comment.