Browse Source

Fix false positive

A single Unit expression is unnecessary and can safely be removed. [OptionalUnit]
pull/2730/head
Benoit Marty 5 months ago
parent
commit
93709f33b8
  1. 3
      libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/timeline/RustMatrixTimeline.kt

3
libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/timeline/RustMatrixTimeline.kt

@ -235,7 +235,6 @@ class RustMatrixTimeline( @@ -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( @@ -244,7 +243,7 @@ class RustMatrixTimeline(
}
}.onSuccess {
Timber.v("Success back paginating for room ${matrixRoom.roomId}")
}
}.map { }
}
private fun canBackPaginate(): Boolean {

Loading…
Cancel
Save