We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0687fd0 commit 30975cbCopy full SHA for 30975cb
exercises/tiered_pricing/solutions/mperezi/src/main/java/tv/codely/checkout/TieredPricing.java
@@ -28,10 +28,6 @@ static Tier of(int subscriptions) {
28
}
29
30
public double totalPrice(int subscriptions) {
31
- return subscriptions * getTier(subscriptions).unitPrice;
32
- }
33
-
34
- private Tier getTier(int subscriptions) {
35
- return Tier.of(subscriptions);
+ return subscriptions * Tier.of(subscriptions).unitPrice;
36
37
0 commit comments