Skip to content

Commit 6807e45

Browse files
committed
Expect onError function is always provided
This can't really be optional.
1 parent e65b2df commit 6807e45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/substituteClassApplyAtRules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function findMixin(css, mixin, onError) {
2323
}
2424
})
2525

26-
if (_.isEmpty(matches) && _.isFunction(onError)) {
26+
if (_.isEmpty(matches)) {
2727
onError(`\`@apply\` cannot be used with ${mixin} because ${mixin} either does not exist, or it's actual definition includes a pseudo-class like :hover, :active, etc.`)
2828
}
2929

0 commit comments

Comments
 (0)