aboutsummaryrefslogtreecommitdiff
path: root/benchmark/fs/readfile-partitioned.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/fs/readfile-partitioned.js')
-rw-r--r--benchmark/fs/readfile-partitioned.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/fs/readfile-partitioned.js b/benchmark/fs/readfile-partitioned.js
index be3b7fd057..6e355c158d 100644
--- a/benchmark/fs/readfile-partitioned.js
+++ b/benchmark/fs/readfile-partitioned.js
@@ -24,7 +24,7 @@ const bench = common.createBenchmark(main, {
function main(conf) {
const len = +conf.len;
- try { fs.unlinkSync(filename); } catch (e) {}
+ try { fs.unlinkSync(filename); } catch {}
var data = Buffer.alloc(len, 'x');
fs.writeFileSync(filename, data);
data = null;
@@ -39,7 +39,7 @@ function main(conf) {
const totalOps = reads + zips;
benchEnded = true;
bench.end(totalOps);
- try { fs.unlinkSync(filename); } catch (e) {}
+ try { fs.unlinkSync(filename); } catch {}
}, +conf.dur * 1000);
function read() {