Skip to content

Commit 5aae323

Browse files
committed
Upgrade: Drop the redundant safe call in the acquisition offers gate
Inside the '!inGrace ||' branch the compiler already smart-casts loadedState to GplayUpgradeUiState.Loaded, so the '?.' on it was an unnecessary safe call on a non-null receiver.
1 parent 53d7782 commit 5aae323

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/gplay/java/eu/darken/amply/upgrade/ui/UpgradeScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private fun UpgradeAcquisitionContent(
157157

158158
// During a YOUNG grace episode the offers box is hidden: likely a blip, and offers next to "still
159159
// active" would contradict it. An aged episode brings them back.
160-
if (!inGrace || loadedState?.grace?.showDiagnostics == true) {
160+
if (!inGrace || loadedState.grace?.showDiagnostics == true) {
161161
UpgradeOffersBox(
162162
uiState = uiState,
163163
onIap = onIap,

0 commit comments

Comments
 (0)