Skip to content

Commit

Permalink
remove non null assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
AnasNaouchi committed Jun 11, 2024
1 parent ffda26e commit a0bdf7e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,14 @@ class PaymentCreatorActivity : OmiseActivity() {
val selectedTokenizationMethods = merchantPassedCapabilities.tokenizationMethods
if (selectedPaymentMethods != null) {
filteredPaymentMethods =
capability.paymentMethods!!.filter { capMethod ->
capability.paymentMethods?.filter { capMethod ->
selectedPaymentMethods.map { it.name }.contains(capMethod.name)
}
capability.paymentMethods = filteredPaymentMethods.toMutableList()
capability.paymentMethods = filteredPaymentMethods?.toMutableList()
}
if (selectedTokenizationMethods != null) {
filteredTokenizationMethods =
capability.tokenizationMethods!!.filter {
capability.tokenizationMethods?.filter {
selectedTokenizationMethods.contains(it)
}
capability.tokenizationMethods = filteredTokenizationMethods
Expand Down

0 comments on commit a0bdf7e

Please sign in to comment.