mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Fix false positive
A single Unit expression is unnecessary and can safely be removed. [OptionalUnit]
This commit is contained in:
+1
-2
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user