mirror of https://github.com/usbharu/Hideout.git
refactor: 不要なnullチェックを削除
This commit is contained in:
parent
2d6d25763e
commit
09e5ff7ea5
|
@ -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) } }
|
||||
|
|
Loading…
Reference in New Issue