Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelWest22 committed Sep 17, 2024
1 parent 2df477e commit 36ce230
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/htmx.js
Original file line number Diff line number Diff line change
Expand Up @@ -1138,10 +1138,7 @@ var htmx = (function() {
* @returns {Node[]}
*/
function toNodeArray(node) {
if (node) {
return [node]
}
return []
return node ? [node] : []
}

/**
Expand Down

0 comments on commit 36ce230

Please sign in to comment.