Code cleanup

This commit is contained in:
litetex 2021-11-05 13:17:33 +01:00
parent 5ae72d1ed2
commit 1289b1a283
1 changed files with 2 additions and 2 deletions

View File

@ -69,8 +69,8 @@ class SubscriptionManager(context: Context) {
}
}
fun updateNotificationMode(serviceId: Int, url: String?, @NotificationMode mode: Int): Completable {
return subscriptionTable().getSubscription(serviceId, url!!)
fun updateNotificationMode(serviceId: Int, url: String, @NotificationMode mode: Int): Completable {
return subscriptionTable().getSubscription(serviceId, url)
.flatMapCompletable { entity: SubscriptionEntity ->
Completable.fromAction {
entity.notificationMode = mode