Skip to content

Commit

Permalink
perf: skip a variable reassignment
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jun 16, 2015
1 parent 3f4f321 commit 8326149
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ unreleased

* Use `path-is-absolute` to better detect absolute paths
* perf: enable strict mode
* perf: skip a variable reassignment

1.2.2 / 2015-02-16
==================
Expand Down
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,5 @@ function resolvePath(rootPath, relativePath) {
root = normalize(resolve(root) + sep)

// resolve the path
path = resolve(root, path)

return path
return resolve(root, path)
}

0 comments on commit 8326149

Please sign in to comment.