Skip to content

Commit

Permalink
[#3490] Update ScopeMob Higher-order functions and lambdas to use lam…
Browse files Browse the repository at this point in the history
…bdas
  • Loading branch information
mustafaozhan committed May 30, 2024
1 parent 78d1b1e commit 2a1b9d3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ class PremiumViewModel(
.maxByOrNull {
it.type.calculatePremiumEnd(it.date)
}?.whether(
{ type.calculatePremiumEnd(date).isNotPassed() },
{ date > appStorage.premiumEndDate },
{ PremiumType.getPurchaseIds().any { id -> id == type.data.id } }
{ it.type.calculatePremiumEnd(it.date).isNotPassed() },
{ it.date > appStorage.premiumEndDate },
{ PremiumType.getPurchaseIds().any { id -> id == it.type.data.id } }
)?.run {
onPremiumActivated(
adType = PremiumType.getById(type.data.id),
Expand Down

0 comments on commit 2a1b9d3

Please sign in to comment.