mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-06-30 17:34:39 -05:00
Lint
This commit is contained in:
@@ -121,7 +121,6 @@ interface Filter<T : Filter<T>> : HasGetOp {
|
|||||||
}
|
}
|
||||||
return op
|
return op
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ScalarFilter<T> {
|
interface ScalarFilter<T> {
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ interface OrderBy<T> {
|
|||||||
fun less(cursor: Cursor): Op<Boolean>
|
fun less(cursor: Cursor): Op<Boolean>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fun SortOrder?.maybeSwap(value: Any?): SortOrder {
|
fun SortOrder?.maybeSwap(value: Any?): SortOrder {
|
||||||
return if (value != null) {
|
return if (value != null) {
|
||||||
when (this) {
|
when (this) {
|
||||||
@@ -29,4 +28,4 @@ fun SortOrder?.maybeSwap(value: Any?): SortOrder {
|
|||||||
} else {
|
} else {
|
||||||
this ?: SortOrder.ASC
|
this ?: SortOrder.ASC
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user