diff --git a/README.md b/README.md index 0ce995e..b102855 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Default is false. `camelcase`: Automatically add camelcase aliases for files with dash- and underscore-separated names. E.g. `foo-bar.js` will be exposed under both the -original `'foo-bar'` name as well as a `'fooBarBaz'` alias. Default is false. +original `'foo-bar'` name as well as a `'fooBar'` alias. Default is false. `duplicates`: By default, if multiple files share the same basename, only the highest priority one is `require()`'d and returned. (Priority is determined by diff --git a/index.js b/index.js index b1f8ae1..d923b98 100644 --- a/index.js +++ b/index.js @@ -16,7 +16,6 @@ module.exports = function requireDir(dir, opts) { // default arguments: dir = dir || '.'; opts = opts || {}; - var camelcase = !!opts.camelcase; // resolve the path to an absolute one: dir = Path.resolve(parentDir, dir);