Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
KCeh committed Jul 7, 2024
1 parent d10925c commit b2bb4e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ internal class DelegateWorker(
parameters.inputData.getString(WORKER_CLASS_NAME) ?: ""
private val workerId = parameters.inputData.getString(WORKER_ID)
private val delegateWorkerFactory = workerFactories[workerId]
private val delegateWorker = delegateWorkerFactory?.createWorker(appContext, workerClassName, parameters)
private val delegatedWorker = delegateWorkerFactory?.createWorker(appContext, workerClassName, parameters)

override fun startWork(): ListenableFuture<Result> {
return if (delegateWorker != null) {
delegateWorker.startWork()
return if (delegatedWorker != null) {
delegatedWorker.startWork()
} else {
val errorMessage = "No delegateWorker available for $workerId" +
" with workerClassName of $workerClassName. Is the " +
Expand Down Expand Up @@ -66,4 +66,4 @@ internal class DelegateWorker(
get() = backingWorkerMap.entries
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ internal class SentinelWorkManager(
)
.build()
)

}

fun certificatesCheckState(): Flow<Boolean> =
Expand Down

0 comments on commit b2bb4e7

Please sign in to comment.