cap-js / cds-dbs

Monorepo for SQL Database Services for CAP
https://cap.cloud.sap/docs/
Apache License 2.0
32 stars 9 forks source link

chore: make use of optional catch binding #683

Closed patricebender closed 3 weeks ago

patricebender commented 3 weeks ago

Optional catch binding is a feature introduced in ECMAScript 2019 (ES10) that allows you to use catch clauses in try/catch statements without specifying an error variable

schiwekM commented 3 weeks ago

No description provided.

Can't you just leave out the argument to avoid this error, instead of adjusting linting?

patricebender commented 3 weeks ago

No description provided.

Can't you just leave out the argument to avoid this error, instead of adjusting linting?

you are right, that would be better :)