Skip to content

Commit

Permalink
3771: Appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakoja committed Jul 7, 2023
1 parent 86212b4 commit b19cf1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import androidx.paging.RemoteMediator
import com.google.gson.Gson
import com.keylesspalace.tusky.components.timeline.toAccount
import com.keylesspalace.tusky.components.timeline.util.ifExpected
import com.keylesspalace.tusky.db.AccountEntity
import com.keylesspalace.tusky.db.AccountManager
import com.keylesspalace.tusky.db.AppDatabase
import com.keylesspalace.tusky.entity.TimelineAccount
Expand Down Expand Up @@ -80,7 +79,7 @@ class NetworkTimelineRemoteMediator(
val expanded = oldStatus?.isExpanded ?: activeAccount.alwaysOpenSpoiler
val contentCollapsed = oldStatus?.isCollapsed ?: true

var inReplyToAccount:TimelineAccount? = null
var inReplyToAccount: TimelineAccount? = null
if (status.inReplyToAccountId != null) {
inReplyToAccount = accountDao.get(status.inReplyToAccountId)?.toAccount(gson)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fun Status.toViewData(
isExpanded: Boolean,
isCollapsed: Boolean,
isDetailed: Boolean = false,
inReplyToAccount: TimelineAccount? = null,
inReplyToAccount: TimelineAccount? = null
): StatusViewData.Concrete {
return StatusViewData.Concrete(
status = this,
Expand Down

0 comments on commit b19cf1e

Please sign in to comment.