fix: remove warning and refactor & fix ad workflow (#4235)

This commit is contained in:
Olivier Bouillet
2024-10-17 21:56:06 +02:00
committed by GitHub
parent f04b233a40
commit 7501880062
4 changed files with 62 additions and 73 deletions

View File

@@ -37,8 +37,8 @@ data class CMCDProps(
return (0 until array.size()).mapNotNull { i ->
val item = array.getMap(i)
val key = item?.getString("key")
val value = when (item?.getType("value")) {
val key = item.getString("key")
val value = when (item.getType("value")) {
ReadableType.Number -> item.getDouble("value")
ReadableType.String -> item.getString("value")
else -> null