mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2025-10-26 00:50:12 +00:00
remove redundant new functions
This commit is contained in:
@@ -3,12 +3,6 @@ package dev.inmo.krontab
|
|||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import androidx.work.ListenableWorker
|
import androidx.work.ListenableWorker
|
||||||
|
|
||||||
@SuppressLint("RestrictedApi")
|
|
||||||
internal fun ListenableWorker.Result.isSuccess() = this is ListenableWorker.Result.Success
|
|
||||||
|
|
||||||
@SuppressLint("RestrictedApi")
|
|
||||||
internal fun ListenableWorker.Result.isFailure() = this is ListenableWorker.Result.Failure
|
|
||||||
|
|
||||||
@SuppressLint("RestrictedApi")
|
@SuppressLint("RestrictedApi")
|
||||||
internal inline fun ListenableWorker.Result.checkResults(
|
internal inline fun ListenableWorker.Result.checkResults(
|
||||||
onFailure: () -> Unit,
|
onFailure: () -> Unit,
|
||||||
|
|||||||
Reference in New Issue
Block a user