build(deps-dev): apply updates
[benchmarks-js.git] / promise-handling.mjs
index 7f450b3fc53c58f3e93abd821b6490ba7519d260..1624bc2d18224946d95738bb0c2dac41109040bc 100644 (file)
@@ -23,9 +23,7 @@ Benchmark.suite(
       .then(r => {
         return r
       })
-      .catch(e => {
-        console.error(e)
-      })
+      .catch(console.error)
   }),
   Benchmark.add('voided promise', () => {
     // eslint-disable-next-line no-void
@@ -51,6 +49,4 @@ Benchmark.suite(
     format: 'table.html',
     details: true
   })
-).catch(err => {
-  console.error(err)
-})
+).catch(console.error)