Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* Don't validate cache using instanceof

  • Loading branch information...
commit 29d215f3996c7a7d9a542a6dbb5b829588c36ac6 1 parent 91d99ca
@joehewitt authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  cache.js
View
2  cache.js
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.