Skip to content

Commit a214197

Browse files
mwczcastastrophe
andauthored
remove always-false condition from _convertSelectorsToArray (#1568)
Co-authored-by: [ Cassondra ] <[email protected]>
1 parent 87f2dfd commit a214197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elements/pfelement/src/pfelement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ class PFElement extends HTMLElement {
935935
static _convertSelectorsToArray(selectors) {
936936
if (selectors) {
937937
if (typeof selectors === "string") return selectors.split(",");
938-
else if (typeof selectors === "array" || typeof selectors === "object") return selectors;
938+
else if (typeof selectors === "object") return selectors;
939939
else {
940940
this.warn(`selectors should be provided as a string, array, or object; received: ${typeof selectors}.`);
941941
}

0 commit comments

Comments
 (0)