mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-10-14 19:27:09 -04:00
Stores: the size lookup has a block body for its early returns
This commit is contained in:
1 parent
3c64c6b3b8
commit
5109fa4839
1 file changed
+2
-2
@@ -51,7 +51,7 @@ object StoreSizes {
|
||||
}
|
||||
}
|
||||
|
||||
private fun fetch(context: Context, item: CatalogItem): Long = when (item.store) {
|
||||
private fun fetch(context: Context, item: CatalogItem): Long { return when (item.store) {
|
||||
Store.EPIC -> {
|
||||
val token = EpicCredentialStore.getValidAccessToken(context) ?: return 0L
|
||||
val ns = item.extra["namespace"].orEmpty()
|
||||
@@ -70,5 +70,5 @@ object StoreSizes {
|
||||
AmazonManifest.parse(bytes).totalInstallSize
|
||||
}
|
||||
Store.GOG -> 0L
|
||||
}
|
||||
} }
|
||||
}
|
||||
Reference in new issue
Block a user