Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not reinvent path.resolve #93

Merged
merged 3 commits into from Jun 28, 2014
Merged

do not reinvent path.resolve #93

merged 3 commits into from Jun 28, 2014

Conversation

Mithgol
Copy link
Contributor

@Mithgol Mithgol commented Jun 28, 2014

The code path.join(process.cwd(), binary_module) basically “reinvented the wheel” where path.resolve could be used instead. The behaviour of path.resolve is also correct when binary_module happens to be an absolute path.

This pull request also fixes #92. (A branch containing both of the fixes was necessary for testing.)

Mithgol added a commit to TryGhost/node-sqlite3 that referenced this pull request Jun 28, 2014
Mithgol added a commit to TryGhost/node-sqlite3 that referenced this pull request Jun 28, 2014
springmeyer pushed a commit that referenced this pull request Jun 28, 2014
do not reinvent `path.resolve`
@springmeyer springmeyer merged commit e4fc810 into mapbox:master Jun 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants