Remove the getValue usage in the SheetParserScope
This commit is contained in:
parent
aa4fd5dc4b
commit
e98b2864e2
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ class SheetParserScope<T> {
|
||||||
this.toString().takeIf { it.isNotBlank() }
|
this.toString().takeIf { it.isNotBlank() }
|
||||||
|
|
||||||
fun List<*>.parse(column: Column): String? =
|
fun List<*>.parse(column: Column): String? =
|
||||||
getOrNull(structure.getValue(column))?.toItem()
|
structure[column]?.let { getOrNull(it) }?.toItem()
|
||||||
|
|
||||||
fun List<*>.parseInt(column: Column): Int? =
|
fun List<*>.parseInt(column: Column): Int? =
|
||||||
parse(column)?.toIntOrNull()
|
parse(column)?.toIntOrNull()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue