Skip to content

Commit 106bbad

Browse files
committed
fix styling of elvis operator calls
1 parent 0313397 commit 106bbad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/rx/lang/kotlin/operators.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fun <T> Observable<T>.joinToString(separator: String? = null,
3131
prefix: String? = null,
3232
postfix: String? = null
3333
) = withIndex()
34-
.collect( { StringBuilder(prefix?:"") },
35-
{ builder: StringBuilder, next: IndexedValue<T> -> builder.append(if (next.index == 0) "" else separator?:"").append(next.value) }
34+
.collect( { StringBuilder(prefix ?: "") },
35+
{ builder: StringBuilder, next: IndexedValue<T> -> builder.append(if (next.index == 0) "" else separator ?: "").append(next.value) }
3636
)
37-
.map { it.append(postfix?:"").toString() }
37+
.map { it.append(postfix ?: "").toString() }

0 commit comments

Comments
 (0)