Skip to content

Commit 86fe168

Browse files
author
George Griffiths
committed
remove unreachable code path
1 parent 2983aee commit 86fe168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/querySelectorDeep.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function collectAllElementsDeep(selector = null, root) {
150150
}
151151
findAllElements(root.querySelectorAll('*'));
152152

153-
return selector ? allElements.filter(el => el.matches(selector)) : allElements;
153+
return allElements.filter(el => el.matches(selector));
154154
}
155155

156156

0 commit comments

Comments
 (0)