Kouhei Sutou
null+****@clear*****
Mon Apr 7 11:30:42 JST 2014
Kouhei Sutou 2014-04-07 11:30:42 +0900 (Mon, 07 Apr 2014) New Revision: 6bc3d250222255b8f492cfaf283e6566b6641b70 https://github.com/droonga/express-droonga/commit/6bc3d250222255b8f492cfaf283e6566b6641b70 Message: Remove needless code "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. Modified files: lib/response-cache/cache.js lib/response-cache/entry.js lib/response-cache/index.js lib/response-cache/rule.js Modified: lib/response-cache/cache.js (+1 -1) =================================================================== --- lib/response-cache/cache.js 2014-03-29 00:20:26 +0900 (16597d6) +++ lib/response-cache/cache.js 2014-04-07 11:30:42 +0900 (6a913d7) @@ -84,4 +84,4 @@ Cache.prototype = { }; } }; -exports = module.exports = Cache; +module.exports = Cache; Modified: lib/response-cache/entry.js (+1 -1) =================================================================== --- lib/response-cache/entry.js 2014-03-29 00:20:26 +0900 (4ebe849) +++ lib/response-cache/entry.js 2014-04-07 11:30:42 +0900 (d507208) @@ -48,4 +48,4 @@ Entry.prototype = { callback(this.data); } }; -exports = module.exports = Entry; +module.exports = Entry; Modified: lib/response-cache/index.js (+1 -1) =================================================================== --- lib/response-cache/index.js 2014-03-29 00:20:26 +0900 (3b6cbed) +++ lib/response-cache/index.js 2014-04-07 11:30:42 +0900 (f0762e0) @@ -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) { Modified: lib/response-cache/rule.js (+1 -1) =================================================================== --- lib/response-cache/rule.js 2014-03-29 00:20:26 +0900 (8af2461) +++ lib/response-cache/rule.js 2014-04-07 11:30:42 +0900 (a177458) @@ -14,4 +14,4 @@ Rule.prototype = { return this.regex.test(request.url); } }; -exports = module.exports = Rule; +module.exports = Rule; -------------- next part -------------- HTML����������������������������...Download