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