mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-09 05:44:33 -05:00
[skip ci] Formatting
This commit is contained in:
@@ -13,9 +13,8 @@ import suwayomi.tachidesk.graphql.types.DownloadStatus
|
||||
import suwayomi.tachidesk.manga.impl.download.DownloadManager
|
||||
|
||||
class DownloadSubscription {
|
||||
fun downloadChanged(): Flow<DownloadStatus> {
|
||||
return DownloadManager.status.map { downloadStatus ->
|
||||
fun downloadChanged(): Flow<DownloadStatus> =
|
||||
DownloadManager.status.map { downloadStatus ->
|
||||
DownloadStatus(downloadStatus)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,5 @@ import suwayomi.tachidesk.graphql.types.WebUIUpdateStatus
|
||||
import suwayomi.tachidesk.server.util.WebInterfaceManager
|
||||
|
||||
class InfoSubscription {
|
||||
fun webUIUpdateStatusChange(): Flow<WebUIUpdateStatus> {
|
||||
return WebInterfaceManager.status
|
||||
}
|
||||
fun webUIUpdateStatusChange(): Flow<WebUIUpdateStatus> = WebInterfaceManager.status
|
||||
}
|
||||
|
||||
@@ -18,9 +18,8 @@ import suwayomi.tachidesk.manga.impl.update.IUpdater
|
||||
class UpdateSubscription {
|
||||
private val updater by DI.global.instance<IUpdater>()
|
||||
|
||||
fun updateStatusChanged(): Flow<UpdateStatus> {
|
||||
return updater.status.map { updateStatus ->
|
||||
fun updateStatusChanged(): Flow<UpdateStatus> =
|
||||
updater.status.map { updateStatus ->
|
||||
UpdateStatus(updateStatus)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user