Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
selector.walk(node => {
const { type } = node;
if (
type === parseSelector.CLASS ||
type === parseSelector.ID ||
type === parseSelector.ATTRIBUTE ||
type === parseSelector.TAG
) {
interestedNode = node;
return false; /* break */
}
});
if (interestedNode) {
selector.walk(node => {
const { type } = node;
if (type === parseSelector.CLASS || type === parseSelector.ID) {
skip = false;
}
});
if (skip) {