Permalink
Browse files

refactor

  • Loading branch information...
1 parent 6f411e5 commit 1211903bebed4a7803f0f47a40c73ab7edc95219 TJ Holowaychuk committed Nov 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/middleware/directory.js
@@ -52,8 +52,8 @@ exports = module.exports = function directory(root, options){
if (!root) throw new Error('directory() root path required');
var hidden = options.hidden
, icons = options.icons
- , filter = options.filter;
- root = normalize(root);
+ , filter = options.filter
+ , root = normalize(root);
return function directory(req, res, next) {
if ('GET' != req.method && 'HEAD' != req.method) return next();

0 comments on commit 1211903

Please sign in to comment.