Fix ktLint / op-spacing
This commit is contained in:
parent
6a8230239b
commit
7c0cd1dc52
|
@ -436,8 +436,8 @@ internal class TimelineChunk(private val chunkEntity: ChunkEntity,
|
||||||
// Check consistency to item before insertions
|
// Check consistency to item before insertions
|
||||||
if (range.startIndex > 0) {
|
if (range.startIndex > 0) {
|
||||||
val firstInsertion = results[range.startIndex]!!
|
val firstInsertion = results[range.startIndex]!!
|
||||||
val lastBeforeInsertion = builtEvents[range.startIndex-1]
|
val lastBeforeInsertion = builtEvents[range.startIndex - 1]
|
||||||
if (firstInsertion.displayIndex+1 != lastBeforeInsertion.displayIndex) {
|
if (firstInsertion.displayIndex + 1 != lastBeforeInsertion.displayIndex) {
|
||||||
Timber.i("handleDatabaseChangeSet: skip insertion at ${range.startIndex}/${builtEvents.size}, " +
|
Timber.i("handleDatabaseChangeSet: skip insertion at ${range.startIndex}/${builtEvents.size}, " +
|
||||||
"displayIndex mismatch at ${range.startIndex}: ${firstInsertion.displayIndex} -> ${lastBeforeInsertion.displayIndex}")
|
"displayIndex mismatch at ${range.startIndex}: ${firstInsertion.displayIndex} -> ${lastBeforeInsertion.displayIndex}")
|
||||||
continue
|
continue
|
||||||
|
@ -445,11 +445,11 @@ internal class TimelineChunk(private val chunkEntity: ChunkEntity,
|
||||||
}
|
}
|
||||||
// Check consistency to item after insertions
|
// Check consistency to item after insertions
|
||||||
if (range.startIndex < builtEvents.size) {
|
if (range.startIndex < builtEvents.size) {
|
||||||
val lastInsertion = results[range.startIndex+range.length-1]!!
|
val lastInsertion = results[range.startIndex + range.length - 1]!!
|
||||||
val firstAfterInsertion = builtEvents[range.startIndex]
|
val firstAfterInsertion = builtEvents[range.startIndex]
|
||||||
if (firstAfterInsertion.displayIndex+1 != lastInsertion.displayIndex) {
|
if (firstAfterInsertion.displayIndex + 1 != lastInsertion.displayIndex) {
|
||||||
Timber.i("handleDatabaseChangeSet: skip insertion at ${range.startIndex}/${builtEvents.size}, " +
|
Timber.i("handleDatabaseChangeSet: skip insertion at ${range.startIndex}/${builtEvents.size}, " +
|
||||||
"displayIndex mismatch at ${range.startIndex+range.length}: " +
|
"displayIndex mismatch at ${range.startIndex + range.length}: " +
|
||||||
"${firstAfterInsertion.displayIndex} -> ${lastInsertion.displayIndex}")
|
"${firstAfterInsertion.displayIndex} -> ${lastInsertion.displayIndex}")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue