From ccb32042d22943dad451b40ddc30f45687d2583e Mon Sep 17 00:00:00 2001 From: "macroscopeapp[bot]" <170038800+macroscopeapp[bot]@users.noreply.github.com> Date: Thu, 5 Feb 2026 23:31:16 +0000 Subject: [PATCH] Remove always-empty $unset object from userProperties in Exposure.toAmplitudeEvents() --- core/src/main/kotlin/exposure/ExposureTracker.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/src/main/kotlin/exposure/ExposureTracker.kt b/core/src/main/kotlin/exposure/ExposureTracker.kt index 4adedc2..73fcd3b 100644 --- a/core/src/main/kotlin/exposure/ExposureTracker.kt +++ b/core/src/main/kotlin/exposure/ExposureTracker.kt @@ -111,7 +111,6 @@ internal fun Exposure.toAmplitudeEvents(): List { event.userProperties = JSONObject().apply { val set = JSONObject() - val unset = JSONObject() val flagType = variant.metadata?.get("flagType") as? String if (flagType != FlagType.MUTUAL_EXCLUSION_GROUP) { if (variant.key != null) { @@ -119,7 +118,6 @@ internal fun Exposure.toAmplitudeEvents(): List { } } put("\$set", set) - put("\$unset", unset) } // Insert ID includes flagKey to make it unique per flag