Skip to content

Commit 9272370

Browse files
薛定谔的猫gibfahn
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 f4e6d06 commit 9272370

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
@@ -35,7 +35,7 @@ function main(conf){
3535
thrownewError(`invalid encodingType: ${encodingType}`);
3636
}
3737

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

4141
functionrunTest(){

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

791-
code=path.charCodeAt(1);
792789
if(path.charCodeAt(1)===58/*:*/){
793790
rootEnd=offset=2;
794791
if(len>2){
@@ -1056,7 +1053,6 @@ const win32 ={
10561053
(code>=97/*a*/&&code<=122/*z*/)){
10571054
// Possible device root
10581055

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

0 commit comments

Comments
(0)