Skip to content

Commit cb2591a

Browse files
committed
remove an unused variable
1 parent 43ef1e4 commit cb2591a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

benchmark/fs/bench-glob.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function main(config) {
2424

2525
for (let i = 0; i < config.n; i++) {
2626
if (useAsync) {
27-
const matches = await new Promise((resolve, reject) => {
27+
await new Promise((resolve, reject) => {
2828
fs.glob(pattern, { cwd: fullPath, recursive }, (err, files) => {
2929
if (err) {
3030
reject(err);
@@ -34,7 +34,7 @@ async function main(config) {
3434
});
3535
});
3636
} else {
37-
const matches = fs.globSync(pattern, { cwd: fullPath, recursive });
37+
fs.globSync(pattern, { cwd: fullPath, recursive });
3838
}
3939
}
4040

0 commit comments

Comments
 (0)