mirror of
https://github.com/pachli/pachli-android.git
synced 2025-01-29 00:30:22 +01:00
refactor: Remove unnecessary ?:
operator
Left hand side of the operation was always non-null.
This commit is contained in:
parent
20e5877a29
commit
986ccd0532
@ -59,7 +59,7 @@ class AccountMediaRemoteMediator(
|
||||
}
|
||||
|
||||
val attachments = statuses.flatMap { status ->
|
||||
AttachmentViewData.list(status, activeAccount.alwaysShowSensitiveMedia ?: false)
|
||||
AttachmentViewData.list(status, activeAccount.alwaysShowSensitiveMedia)
|
||||
}
|
||||
|
||||
if (loadType == LoadType.REFRESH) {
|
||||
|
@ -85,8 +85,8 @@ class ViewThreadViewModel @Inject constructor(
|
||||
|
||||
init {
|
||||
activeAccount = accountManager.activeAccount!!
|
||||
alwaysShowSensitiveMedia = activeAccount.alwaysShowSensitiveMedia ?: false
|
||||
alwaysOpenSpoiler = activeAccount.alwaysOpenSpoiler ?: false
|
||||
alwaysShowSensitiveMedia = activeAccount.alwaysShowSensitiveMedia
|
||||
alwaysOpenSpoiler = activeAccount.alwaysOpenSpoiler
|
||||
|
||||
viewModelScope.launch {
|
||||
eventHub.events
|
||||
|
Loading…
x
Reference in New Issue
Block a user