Fix false positive

A single Unit expression is unnecessary and can safely be removed. [OptionalUnit]
This commit is contained in:
Benoit Marty 2024-04-26 09:17:22 +02:00
parent 1a64901ee0
commit 93709f33b8

View file

@ -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 {