Skip to content

Commit 271b5a4

Browse files
Fix bug with logic for checking if testing.
1 parent 20981a9 commit 271b5a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/table-sort.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function tableSortJs(test = false, domDocumentWindow = document) {
2020
if (test === true) {
2121
const getTagTable = domDocumentWindow.getElementsByTagName("table");
2222
return [getTagTable];
23-
} else if (test === false) {
23+
} else {
2424
const getTagTable = document.getElementsByTagName("table");
2525
return [getTagTable];
2626
}
@@ -40,7 +40,7 @@ function tableSortJs(test = false, domDocumentWindow = document) {
4040
if (sortableTable.getElementsByTagName("thead").length === 0) {
4141
if (test === true) {
4242
createTableHead = domDocumentWindow.createElement("thead");
43-
} else if (test === false) {
43+
} else {
4444
createTableHead = document.createElement("thead");
4545
}
4646
createTableHead.appendChild(sortableTable.rows[0]);

0 commit comments

Comments
 (0)