Skip to content

Commit b1b9753

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 dbf5ddb commit b1b9753

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
thrownewError('invalid type');
3434
}
3535

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

3939
functionrunTest(){

‎lib/path.js‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ const win32 ={
269269
(code>=97/*a*/&&code<=122/*z*/)){
270270
// Possible device root
271271

272-
code=path.charCodeAt(1);
273272
if(path.charCodeAt(1)===58/*:*/){
274273
device=path.slice(0,2);
275274
rootEnd=2;
@@ -391,7 +390,6 @@ const win32 ={
391390
(code>=97/*a*/&&code<=122/*z*/)){
392391
// Possible device root
393392

394-
code=path.charCodeAt(1);
395393
if(path.charCodeAt(1)===58/*:*/){
396394
device=path.slice(0,2);
397395
rootEnd=2;
@@ -769,7 +767,6 @@ const win32 ={
769767
(code>=97/*a*/&&code<=122/*z*/)){
770768
// Possible device root
771769

772-
code=path.charCodeAt(1);
773770
if(path.charCodeAt(1)===58/*:*/){
774771
rootEnd=offset=2;
775772
if(len>2){
@@ -1037,7 +1034,6 @@ const win32 ={
10371034
(code>=97/*a*/&&code<=122/*z*/)){
10381035
// Possible device root
10391036

1040-
code=path.charCodeAt(1);
10411037
if(path.charCodeAt(1)===58/*:*/){
10421038
rootEnd=2;
10431039
if(len>2){

0 commit comments

Comments
(0)