Skip to content

Commit 8b89cf5

Browse files
committed
small cleanup
1 parent b31a871 commit 8b89cf5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/mediaquery.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,13 @@ function matchQuery(query, values) {
9292
}
9393
});
9494

95+
const isMatch = typeMatch && expressionsMatch;
96+
9597
if (inverse) {
96-
return !(typeMatch && expressionsMatch);
98+
return !isMatch;
9799
}
98-
return typeMatch && expressionsMatch;
100+
101+
return isMatch;
99102
}
100103

101104
// -- Utilities ----------------------------------------------------------------

0 commit comments

Comments
 (0)