Skip to content

Commit 53d7782

Browse files
committed
Upgrade: Drop the unnecessary safe call on the repo error
The error is already smart-cast to non-null by the surrounding check, so the safe call produced a compiler warning without changing behavior.
1 parent 4e5a588 commit 53d7782

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class UpgradeViewModel @Inject constructor(
231231
if (!current.isPro && current.error != null) {
232232
if (!hasShownRepoError) {
233233
hasShownRepoError = true
234-
current.error?.let { events.tryEmit(UpgradeEvents.Error(it)) }
234+
current.error.let { events.tryEmit(UpgradeEvents.Error(it)) }
235235
}
236236
} else {
237237
hasShownRepoError = false

0 commit comments

Comments
 (0)