Skip to content

Commit 7a2c65d

Browse files
committed
Fix class logic
1 parent 403414c commit 7a2c65d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/options/classes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { removeUndefined } from './default.js'
44

55
// `options.classes.{ErrorName}.*` is like `options.*` but only applies if
66
// `error.name` matches.
7-
export const applyClassesOpts = ({ name }, opts = {}) => {
7+
export const applyClassesOpts = (name, opts = {}) => {
88
if (!isPlainObj(opts)) {
99
throw new Error(`options must be a plain object: ${opts}`)
1010
}

0 commit comments

Comments
 (0)