Remove redundant crossinline (#4348)
Seems we don't need them in newer Kotlin.
This commit is contained in:
parent
af016c1766
commit
ba495f41a5
3 changed files with 3 additions and 3 deletions
|
|
@ -38,7 +38,7 @@ sealed interface Either<out L, out R> {
|
|||
fun asRight(): R = (this as Right<L, R>).value
|
||||
|
||||
companion object {
|
||||
inline fun <L, R, N> Either<L, R>.map(crossinline mapper: (R) -> N): Either<L, N> {
|
||||
inline fun <L, R, N> Either<L, R>.map(mapper: (R) -> N): Either<L, N> {
|
||||
return if (this.isLeft()) {
|
||||
Left(this.asLeft())
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue