Fix false positive
A single Unit expression is unnecessary and can safely be removed. [OptionalUnit]
This commit is contained in:
parent
1a64901ee0
commit
93709f33b8
1 changed files with 1 additions and 2 deletions
|
|
@ -235,7 +235,6 @@ class RustMatrixTimeline(
|
|||
is PaginationOptions.UntilNumItems -> paginationOptions.eventLimit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}.onFailure { error ->
|
||||
if (error is TimelineException.CannotPaginate) {
|
||||
Timber.d("Can't paginate backwards on room ${matrixRoom.roomId}, we're already at the start")
|
||||
|
|
@ -244,7 +243,7 @@ class RustMatrixTimeline(
|
|||
}
|
||||
}.onSuccess {
|
||||
Timber.v("Success back paginating for room ${matrixRoom.roomId}")
|
||||
}
|
||||
}.map { }
|
||||
}
|
||||
|
||||
private fun canBackPaginate(): Boolean {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue