Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ee84fc3

Browse filesBrowse files
薛定谔的猫MylesBorins
authored andcommitted
benchmark,path: remove unused variables
PR-URL: #15789 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 8d90db5 commit ee84fc3
Copy full SHA for ee84fc3

File tree

Expand file treeCollapse file tree

2 files changed

+1
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+1
-5
lines changed
Open diff view settings
Collapse file

‎benchmark/fs/read-stream-throughput.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/read-stream-throughput.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function main(conf) {
3535
throw new Error(`invalid encodingType: ${encodingType}`);
3636
}
3737

38-
makeFile(runTest);
38+
makeFile();
3939
}
4040

4141
function runTest() {
Collapse file

‎lib/path.js‎

Copy file name to clipboardExpand all lines: lib/path.js
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ const win32 = {
290290
(code >= 97/*a*/ && code <= 122/*z*/)) {
291291
// Possible device root
292292

293-
code = path.charCodeAt(1);
294293
if (path.charCodeAt(1) === 58/*:*/) {
295294
device = path.slice(0, 2);
296295
rootEnd = 2;
@@ -412,7 +411,6 @@ const win32 = {
412411
(code >= 97/*a*/ && code <= 122/*z*/)) {
413412
// Possible device root
414413

415-
code = path.charCodeAt(1);
416414
if (path.charCodeAt(1) === 58/*:*/) {
417415
device = path.slice(0, 2);
418416
rootEnd = 2;
@@ -787,7 +785,6 @@ const win32 = {
787785
(code >= 97/*a*/ && code <= 122/*z*/)) {
788786
// Possible device root
789787

790-
code = path.charCodeAt(1);
791788
if (path.charCodeAt(1) === 58/*:*/) {
792789
rootEnd = offset = 2;
793790
if (len > 2) {
@@ -1054,7 +1051,6 @@ const win32 = {
10541051
(code >= 97/*a*/ && code <= 122/*z*/)) {
10551052
// Possible device root
10561053

1057-
code = path.charCodeAt(1);
10581054
if (path.charCodeAt(1) === 58/*:*/) {
10591055
rootEnd = 2;
10601056
if (len > 2) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.