Permalink
Browse files

Merge pull request #1 from node-migrator-bot/clean

Changed path.{exists,existsSync} to fs.{exists,existsSync}.
  • Loading branch information...
2 parents 70d14e8 + a555d2d commit e018ad21cb6ec8a3dc0addedba4ae7273aa33a19 @twentyrogersc committed Jul 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
2 index.js
@@ -28,7 +28,7 @@ add.static = function(opts) {
addRoute('GET', route+':file*:', function(req, res) {
var file = req.url.pathname.replace(route, '/')
file = path.join(opts.dir, file)
- if (path.existsSync(file)) filed(file).pipe(res)
+ if (fs.existsSync(file)) filed(file).pipe(res)
else res.show404()
}, 1)
}

0 comments on commit e018ad2

Please sign in to comment.