Skip to content

Commit

Permalink
Replace path.exists with fs.exists
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelklehr committed Jun 30, 2012
1 parent c0c820c commit 9d35b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/utils/caching_middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var util = require('util');
var settings = require('./Settings');

var CACHE_DIR = path.normalize(path.join(settings.root, 'var/'));
CACHE_DIR = path.existsSync(CACHE_DIR) ? CACHE_DIR : undefined;
CACHE_DIR = fs.existsSync(CACHE_DIR) ? CACHE_DIR : undefined;

var responseCache = {};

Expand Down

0 comments on commit 9d35b51

Please sign in to comment.