Cleanup: post-cleanup after deprecation cleanup in compiler
Replace `takeIf { !expr }` with `takeUnless { expr }`.
Cleanup redundant parethesis as in `listOf((expr))`.
Replace `listOf(expr)` with `expr.let(::listOf)` where the former caused significant indentation change.
This commit is contained in:
@@ -183,7 +183,7 @@ private class StringArgsConverter : ArgsConverter<String> {
|
||||
DoubleArray::class -> args.map { it?.toDoubleOrNull() }
|
||||
BooleanArray::class -> args.map { it?.toBoolean() }
|
||||
else -> null
|
||||
}?.toList()?.takeIf { list -> list.none { it == null } }?.toTypedArray()
|
||||
}?.toList()?.takeUnless { null in it }?.toTypedArray()
|
||||
|
||||
val parameterType = parameter.type
|
||||
if (parameterType.jvmErasure.java.isArray) {
|
||||
|
||||
Reference in New Issue
Block a user