Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Eran Hammer committed May 10, 2013
1 parent 6d12f34 commit 14b7ce3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,8 @@ exports = module.exports = internals.Pack = function (options) {

options = options || {};

var requirePath = options.requirePath;
if (typeof requirePath === 'string') {
options.requirePath = Path.resolve(requirePath);
}

this._settings = {
requirePath: options.requirePath || process.cwd() + '/node_modules'
requirePath: (options.requirePath ? Path.resolve(options.requirePath) : process.cwd()) + '/node_modules'
};

this._servers = []; // List of all pack server members
Expand Down

0 comments on commit 14b7ce3

Please sign in to comment.