Stores: the size lookup has a block body for its early returns

This commit is contained in:
The412Banner committed 2026-10-09 09:52:20 -04:00
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
}
} }
}