Skip to content

Commit 9272370

Browse files
薛定谔的猫gibfahn
薛定谔的猫
authored andcommittedDec 20, 2017
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 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

+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;
@@ -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)
Please sign in to comment.