Skip to content

Commit

Permalink
refactoring: Removed Non-Needed Check
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Jul 3, 2024
1 parent 8eb244d commit b3c19a8
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions webfiori/ui/HTMLDoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,19 +344,10 @@ public function saveToHTMLFile(string $path, string $fileName, bool $wellFormatt
*
* @param HeadNode $node The node to set.
*
* @return bool If head node is set, the method will return true.
* if it is not set, the method will return false.
*
* @since 1.0
*/
public function setHeadNode(HeadNode $node) : bool {
if ($this->getDocumentRoot()->replaceChild($this->headNode, $node)) {
$this->headNode = $node;

return true;
}

return false;
public function setHeadNode(HeadNode $node) {
$this->getDocumentRoot()->replaceChild($this->headNode, $node);
$this->headNode = $node;
}
/**
* Sets the language of the document.
Expand Down

0 comments on commit b3c19a8

Please sign in to comment.