Skip to content

Commit 4f438e7

Browse files
ferossdougwilson
authored andcommitted
perf: remove redundant path.normalize call
closes #167
1 parent f588626 commit 4f438e7

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

HISTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ unreleased
66
77
- deps: statuses@'>= 1.3.1 < 2'
88
* deps: statuses@~1.5.0
9+
* perf: remove redundant `path.normalize` call
910

1011
0.16.2 / 2018-02-07
1112
===================

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,6 @@ SendStream.prototype.pipe = function pipe (res) {
546546

547547
// join / normalize from optional root dir
548548
path = normalize(join(root, path))
549-
root = normalize(root + sep)
550549
} else {
551550
// ".." is malicious without "root"
552551
if (UP_PATH_REGEXP.test(path)) {

0 commit comments

Comments
 (0)