Skip to content

Commit a437a44

Browse files
committed
Move into std completion blocks
1 parent e769edd commit a437a44

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

app/src/main/java/com/duckduckgo/app/job/AppConfigurationJobService.kt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,12 @@ class AppConfigurationJobService : JobService() {
4242

4343
appConfigurationDownloader.downloadTask()
4444
.subscribeOn(Schedulers.io())
45-
.onErrorComplete() {
45+
.subscribe({
46+
Timber.i("Successfully downloaded all data")
47+
}, {
4648
Timber.w(it, "Failed to download app configuration")
4749
jobFinishedFailed(params)
48-
true
49-
}
50-
.doOnComplete {
51-
jobFinishedSuccessfully(params)
52-
Timber.i("Successfully downloaded all data")
53-
}
54-
.subscribe({})
50+
})
5551

5652
return true
5753
}

0 commit comments

Comments
 (0)