Skip to content

Commit dcac50c

Browse files
committed
Remove check for values.type === 'all' since semantics are wrong
`values` represents a snapshot of the current state of a browser, so it could never have a `type` of `"all"`, so that check has been removed.
1 parent 3c195d6 commit dcac50c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ function matchQuery(mediaQuery, values) {
2323

2424
// Either the parsed or specified `type` is "all", or the types must be
2525
// equal for a match.
26-
var typeMatch = query.type === 'all' || values.type === 'all' ||
27-
values.type === query.type;
26+
var typeMatch = query.type === 'all' || values.type === query.type;
2827

2928
// Quit early when `type` doesn't match, but take "not" into account.
3029
if ((typeMatch && inverse) || !(typeMatch || inverse)) {

0 commit comments

Comments
 (0)