From 2578bc212c44415fcf756aaffa36f5a026929e3f Mon Sep 17 00:00:00 2001 From: Andrey Danilov Date: Tue, 24 Dec 2024 16:50:15 -0800 Subject: [PATCH] remove non-null check for name --- .../src/main/kotlin/cachet/plugins/health/HealthPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/health/android/src/main/kotlin/cachet/plugins/health/HealthPlugin.kt b/packages/health/android/src/main/kotlin/cachet/plugins/health/HealthPlugin.kt index 216aff7ea..5c261f90f 100644 --- a/packages/health/android/src/main/kotlin/cachet/plugins/health/HealthPlugin.kt +++ b/packages/health/android/src/main/kotlin/cachet/plugins/health/HealthPlugin.kt @@ -1516,7 +1516,7 @@ class HealthPlugin(private var channel: MethodChannel? = null) : "sugar" to record.sugar?.inGrams, "water" to null, "zinc" to record.zinc?.inGrams, - "name" to record.name!!, + "name" to record.name, "meal_type" to (mapTypeToMealType[ record.mealType]