summaryrefslogtreecommitdiff
path: root/benchmark/fs/readfile-partitioned.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2018-11-04 12:38:54 -0500
committercjihrig <cjihrig@gmail.com>2018-11-06 10:59:23 -0500
commit5407690bd79a4aa9b5ea72acb98d1a8efd309029 (patch)
tree631bfbf731bdb4fa66338e40a52ecd0579b9d61d /benchmark/fs/readfile-partitioned.js
parenta74b4a062fd6cf8ba5fb0a17078f855b072841cd (diff)
downloadandroid-node-v8-5407690bd79a4aa9b5ea72acb98d1a8efd309029.tar.gz
android-node-v8-5407690bd79a4aa9b5ea72acb98d1a8efd309029.tar.bz2
android-node-v8-5407690bd79a4aa9b5ea72acb98d1a8efd309029.zip
benchmark: remove unused catch bindings
PR-URL: https://github.com/nodejs/node/pull/24079 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Wyatt Preul <wpreul@gmail.com>
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() {