Skip to content

Commit ee84fc3

Browse files
薛定谔的猫MylesBorins
薛定谔的猫
authored andcommitted
benchmark,path: remove unused variables
PR-URL: #15789 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 8d90db5 commit ee84fc3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

benchmark/fs/read-stream-throughput.js

+1-1
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() {

lib/path.js

-4
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)