Replaced sure() invocations with '!!' operator in libraries written on Kotlin.
This commit is contained in:
@@ -9,7 +9,7 @@ class IteratorsJVMTest {
|
||||
|
||||
test fun flatMapAndTakeExtractTheTransformedElements() {
|
||||
fun intToBinaryDigits() = { (i: Int) ->
|
||||
val binary = Integer.toBinaryString(i).sure()
|
||||
val binary = Integer.toBinaryString(i)!!
|
||||
var index = 0
|
||||
iterate<Char> { if (index < binary.length()) binary.get(index++) else null }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user