Permalink
Browse files

Fixed node-cinch not allowing you to omit the file extension.

  • Loading branch information...
1 parent feb37de commit 0d907d9ff8b28649808e98d973762b298947ff58 @pguillory committed Mar 2, 2011
Showing with 1 addition and 8 deletions.
  1. +1 −8 bin/node-cinch
View
@@ -12,11 +12,4 @@ if (process.argv.length < 2) {
var filename = path.join(process.cwd(), process.argv[1])
-path.exists(filename, function(exists) {
- if (!exists) {
- console.log('File not found: ' + process.argv[1])
- process.exit(1)
- }
-
- require(filename)
-})
+require(filename)

0 comments on commit 0d907d9

Please sign in to comment.