Skip to content
Snippets Groups Projects
Commit 3840bf8f authored by Meysam Zandy's avatar Meysam Zandy
Browse files

Remove if condition is always true in Node.php

parent 1d7dbafb
Branches
Tags
No related merge requests found
......@@ -50,12 +50,8 @@ class Node {
*/
public function getNode(NodeInterface $node): JsonResponse {
if ($node) {
$this->body = MainHelper::rebuildFields($node);
}
return MainHelper::returnDataInJson($this->body, $this->message, $this->statusCode, $this->statusMessage);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment