Skip to content

Commit 76f740e

Browse files
author
薛定谔的猫
committed
benchmark,path: remove unused variables
1 parent fca6c58 commit 76f740e

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

benchmark/fs/read-stream-throughput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function main(conf) {
3333
throw new Error('invalid type');
3434
}
3535

36-
makeFile(runTest);
36+
makeFile();
3737
}
3838

3939
function runTest() {

lib/path.js

Lines 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;
@@ -790,7 +788,6 @@ const win32 = {
790788
(code >= 97/*a*/ && code <= 122/*z*/)) {
791789
// Possible device root
792790

793-
code = path.charCodeAt(1);
794791
if (path.charCodeAt(1) === 58/*:*/) {
795792
rootEnd = offset = 2;
796793
if (len > 2) {
@@ -1057,7 +1054,6 @@ const win32 = {
10571054
(code >= 97/*a*/ && code <= 122/*z*/)) {
10581055
// Possible device root
10591056

1060-
code = path.charCodeAt(1);
10611057
if (path.charCodeAt(1) === 58/*:*/) {
10621058
rootEnd = 2;
10631059
if (len > 2) {

0 commit comments

Comments
 (0)