Small whitespace and code-style refactors.

This commit is contained in:
Chris Rankin 2019-10-04 13:46:34 +01:00
parent cde4db7279
commit eeae38a16c
3 changed files with 9 additions and 7 deletions

View File

@ -0,0 +1,2 @@
quiet
exclude sandbox/*.*

View File

@ -11,7 +11,7 @@ class ComponentBuilder : Function<Array<Any?>, List<*>> {
override fun apply(inputs: Array<Any?>): List<*> {
val deserializer = inputs[0] as Function<in Any?, out Any?>
val groupType = inputs[1] as ComponentGroupEnum
val components = (inputs[2] as Array<ByteArray>).map { OpaqueBytes(it) }
val components = (inputs[2] as Array<ByteArray>).map(::OpaqueBytes)
return components.lazyMapped { component, index ->
try {