Skip to content

Commit 24fcd9f

Browse files
committed
Upgrade: Drop the redundant safe call on the grace hint
Inside the `!inGrace || …` branch the smart cast already proves `loadedState.grace` non-null, so the safe call and the `== true` comparison on the plain Boolean only produced a compiler warning.
1 parent 5aae323 commit 24fcd9f

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) {
161161
UpgradeOffersBox(
162162
uiState = uiState,
163163
onIap = onIap,

0 commit comments

Comments
 (0)