Skip to content

Commit

Permalink
JvmMoney fix for alignment after plus/minus
Browse files Browse the repository at this point in the history
  • Loading branch information
morisil committed Dec 5, 2024
1 parent 37ee3bf commit f7e3ce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jvmMain/kotlin/JvmMoney.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ import kotlin.times
public class JvmMoney(private val value: BigDecimal) : Money {

override fun plus(amount: Money): Money = JvmMoney(
value + (amount as JvmMoney).value
(value + (amount as JvmMoney).value).stripTrailingZeros()
)

override fun minus(amount: Money): Money = JvmMoney(
value - (amount as JvmMoney).value
(value - (amount as JvmMoney).value).stripTrailingZeros()
)

override fun times(amount: Money): Money = JvmMoney(
Expand Down

0 comments on commit f7e3ce8

Please sign in to comment.