Skip to content

Commit fd4af8e

Browse files
committed
Rewrite of the if statement.
1 parent 2862d4f commit fd4af8e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Node/MerkleNode.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,9 @@ public function hash(): string
5959
*/
6060
public function label(): string
6161
{
62-
if (true === $this->isLeaf()) {
63-
return $this->getValue();
64-
}
65-
66-
return $this->hash();
62+
return true === $this->isLeaf() ?
63+
$this->getValue() :
64+
$this->hash();
6765
}
6866

6967
/**

0 commit comments

Comments
 (0)