refactor: 不要なnullチェックを削除

This commit is contained in:
usbharu 2024-01-30 23:17:41 +09:00
parent 2d6d25763e
commit 09e5ff7ea5
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ fun <S> Query.withPagination(page: Page, exp: ExpressionWithColumnType<S>): Pagi
page.limit?.let { limit(it) }
val resultRows = if (page.minId != null) {
page.maxId?.let { andWhere { exp.less(it) } }
page.minId?.let { andWhere { exp.greater(it) } }
andWhere { exp.greater(page.minId!!) }
reversed()
} else {
page.maxId?.let { andWhere { exp.less(it) } }