Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
Co-authored-by: Weston Ruter <[email protected]>
  • Loading branch information
swissspidy and westonruter authored Aug 3, 2023
1 parent 7b6ce5f commit 588e7ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2466,7 +2466,7 @@ private function remove_disallowed_descendants( DOMElement $node, $allowed_desce
* @param string $spec_name Spec name.
*/
private function remove_disallowed_siblings( DOMElement $node, $spec_name ) {
if ( ! $node->previousSibling || ! $node->nextSibling ) {
if ( ! $node->previousSibling && ! $node->nextSibling ) {
return;
}

Expand Down

0 comments on commit 588e7ff

Please sign in to comment.