Skip to content

Commit

Permalink
Performance optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Feb 6, 2022
1 parent 18b65a9 commit 00e464e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/error/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// kind of failure.
const getErrorType = function (name) {
return class extends Error {
constructor(...args) {
super(...args)
constructor(message, opts) {
super(message, opts)
// eslint-disable-next-line fp/no-this, fp/no-mutation
this.name = name
}
Expand Down

0 comments on commit 00e464e

Please sign in to comment.