Permalink
Browse files

[fix] path.existsSync was moved to fs.existsSync

  • Loading branch information...
1 parent 7e9ce2c commit 1c3ace33587ed1c01983763d5e4960c94617274e @blakmatrix blakmatrix committed Jul 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/util.js
View
@@ -99,7 +99,7 @@ function _findModuleMain(absModulePath, tryFileName) {
var foundPath = ''
function attempt(aPath) {
if (foundPath) { return }
- if (path.existsSync(aPath)) { foundPath = aPath }
+ if (fs.existsSync(aPath)) { foundPath = aPath }
}
attempt(absModulePath + '.js')
try {

0 comments on commit 1c3ace3

Please sign in to comment.