Skip to content

Commit

Permalink
Improved solution with a right way
Browse files Browse the repository at this point in the history
  • Loading branch information
davidepalladino-apuliasoft committed Nov 14, 2024
1 parent 3f9d1bb commit 567f1d1
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,7 @@ fun coerce(value: Value, type: Type): Value {
}
}
is BooleanValue -> coerceBoolean(value, type)
is UnlimitedStringValue -> {
when (type) {
is StringType -> coerceString(value.value.asValue(), type)
else -> value
}
}
is UnlimitedStringValue -> coerceString(value.value.asValue(), type)
else -> value
}
}
Expand Down

0 comments on commit 567f1d1

Please sign in to comment.