mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2026-10-25 13:47:07 +00:00
remove redundant new functions
This commit is contained in:
1 parent
0c497f5dcb
commit
6e97a365e5
1 file changed
-6
@@ -3,12 +3,6 @@ package dev.inmo.krontab
|
||||
import android.annotation.SuppressLint
|
||||
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")
|
||||
internal inline fun ListenableWorker.Result.checkResults(
|
||||
onFailure: () -> Unit,
|
||||
|
||||
Reference in new issue
Block a user