Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

refactor

  • Loading branch information...
commit 1211903bebed4a7803f0f47a40c73ab7edc95219 1 parent 6f411e5
@tj tj authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/middleware/directory.js
View
4 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.
Something went wrong with that request. Please try again.