Permalink
Browse files

* Don't validate cache using instanceof

  • Loading branch information...
1 parent 91d99ca commit 29d215f3996c7a7d9a542a6dbb5b829588c36ac6 @joehewitt committed Sep 13, 2011
Showing with 0 additions and 2 deletions.
  1. +0 −2 cache.js
View
@@ -10,8 +10,6 @@ var reContentType = /^(.*?);\s+charset=(.*?)$/i;
module.exports = function(cache) {
if (!cache) {
cache = new Cache(null, false, true, true);
- } else if (!(cache instanceof Cache)) {
- cache = new Cache(cache.path, cache.useDisk, cache.useMem, cache.useGzip);
}
return function(req, res, next) {

0 comments on commit 29d215f

Please sign in to comment.