Fix detekt

This commit is contained in:
Grigorii 2023-01-09 16:45:35 +04:00
parent 724c2ca3b8
commit 4dc9e7e478
1 changed files with 1 additions and 1 deletions

View File

@ -14,6 +14,6 @@ abstract class PromocodeDiscount {
} }
class ByPercent(private val percent: Int) : PromocodeDiscount() { class ByPercent(private val percent: Int) : PromocodeDiscount() {
override fun applyTo(totalPrice: Int): Int = totalPrice - (totalPrice * percent / 100) override fun applyTo(totalPrice: Int): Int = totalPrice - totalPrice * percent / 100
} }
} }