Skip to content
This repository was archived by the owner on Dec 16, 2023. It is now read-only.

Commit 9d208fc

Browse files
committed
Suppress CheckResults warnings
1 parent 5e9feb1 commit 9d208fc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/main/java/com/marknkamau/justjava/ui/cart/CartPresenter.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.marknkamau.justjava.ui.cart
22

3+
import android.annotation.SuppressLint
34
import com.marknkamau.justjava.data.local.CartDao
45
import com.marknkamau.justjava.data.models.CartItem
56
import com.marknkamau.justjava.ui.BasePresenter
@@ -49,6 +50,7 @@ internal class CartPresenter(private val activityView: CartView, private val car
4950
))
5051
}
5152

53+
@SuppressLint("CheckResult")
5254
fun deleteItem(item: CartItem){
5355
Completable.fromCallable { cart.deleteItem(item) }
5456
.subscribeOn(Schedulers.io())
@@ -65,6 +67,7 @@ internal class CartPresenter(private val activityView: CartView, private val car
6567
)
6668
}
6769

70+
@SuppressLint("CheckResult")
6871
fun updateItem(item: CartItem){
6972
Completable.fromCallable { cart.updateItem(item) }
7073
.subscribeOn(Schedulers.io())

0 commit comments

Comments
 (0)