Remove the getValue usage in the SheetParserScope

This commit is contained in:
Thomas Andres Gomez 2023-11-12 17:45:08 +01:00
parent aa4fd5dc4b
commit e98b2864e2

View file

@ -59,7 +59,7 @@ class SheetParserScope<T> {
this.toString().takeIf { it.isNotBlank() }
fun List<*>.parse(column: Column): String? =
getOrNull(structure.getValue(column))?.toItem()
structure[column]?.let { getOrNull(it) }?.toItem()
fun List<*>.parseInt(column: Column): Int? =
parse(column)?.toIntOrNull()