Commit 50f59c2e authored by Mygod's avatar Mygod

Remove unnecessary cast

parent f8ddea3f
......@@ -27,7 +27,7 @@ import java.util.concurrent.TimeUnit
class AclSyncer : Worker() {
companion object {
fun schedule(route: String) = WorkManager.getInstance()!!.enqueue(OneTimeWorkRequestBuilder<AclSyncer>()
fun schedule(route: String) = WorkManager.getInstance().enqueue(OneTimeWorkRequestBuilder<AclSyncer>()
.addTag(route)
.setConstraints(Constraints.Builder()
.setRequiredNetworkType(NetworkType.UNMETERED)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment