Skip to content

Commit 45e9eac

Browse files
committed
Clean up unnecessary else
1 parent 2acf717 commit 45e9eac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/BigNumber.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@ final public function clamp(BigNumber|int|float|string $min, BigNumber|int|float
385385

386386
if ($this->isLessThan($min)) {
387387
return $min;
388-
} elseif ($this->isGreaterThan($max)) {
388+
}
389+
390+
if ($this->isGreaterThan($max)) {
389391
return $max;
390392
}
391393

0 commit comments

Comments
 (0)