Skip to content

Commit

Permalink
fix styling of elvis operator calls
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasnield committed Mar 7, 2017
1 parent 0313397 commit 106bbad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/kotlin/rx/lang/kotlin/operators.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fun <T> Observable<T>.joinToString(separator: String? = null,
prefix: String? = null,
postfix: String? = null
) = withIndex()
.collect( { StringBuilder(prefix?:"") },
{ builder: StringBuilder, next: IndexedValue<T> -> builder.append(if (next.index == 0) "" else separator?:"").append(next.value) }
.collect( { StringBuilder(prefix ?: "") },
{ builder: StringBuilder, next: IndexedValue<T> -> builder.append(if (next.index == 0) "" else separator ?: "").append(next.value) }
)
.map { it.append(postfix?:"").toString() }
.map { it.append(postfix ?: "").toString() }

0 comments on commit 106bbad

Please sign in to comment.