Skip to content

Commit

Permalink
perf: remove redundant path.normalize call
Browse files Browse the repository at this point in the history
closes #167
  • Loading branch information
feross authored and dougwilson committed Aug 15, 2018
1 parent f588626 commit 4f438e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ unreleased
- deps: [email protected]
- deps: statuses@'>= 1.3.1 < 2'
* deps: statuses@~1.5.0
* perf: remove redundant `path.normalize` call

0.16.2 / 2018-02-07
===================
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,6 @@ SendStream.prototype.pipe = function pipe (res) {

// join / normalize from optional root dir
path = normalize(join(root, path))
root = normalize(root + sep)
} else {
// ".." is malicious without "root"
if (UP_PATH_REGEXP.test(path)) {
Expand Down

0 comments on commit 4f438e7

Please sign in to comment.