Small indent fix
This commit is contained in:
committed by
Pavel Punegov
parent
6b44b69ec7
commit
8352e5f7d9
@@ -266,7 +266,7 @@ public inline fun <T: Comparable<T>> nullsFirst(): Comparator<T?> = nullsFirst(n
|
|||||||
* considering `null` value greater than any other value.
|
* considering `null` value greater than any other value.
|
||||||
*/
|
*/
|
||||||
public fun <T: Any> nullsLast(comparator: Comparator<in T>): Comparator<T?> {
|
public fun <T: Any> nullsLast(comparator: Comparator<in T>): Comparator<T?> {
|
||||||
return object: Comparator<T?> {
|
return object: Comparator<T?> {
|
||||||
override fun compare(a: T?, b: T?): Int {
|
override fun compare(a: T?, b: T?): Int {
|
||||||
if (a === b) return 0
|
if (a === b) return 0
|
||||||
if (a == null) return 1
|
if (a == null) return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user