From 369bcf38b81edbed1cc020ef0efe99aa5a1d65a4 Mon Sep 17 00:00:00 2001 From: Hafiz Rahman Date: Thu, 5 Dec 2024 13:34:38 +0700 Subject: [PATCH] Quick code cleanup --- .../kotlin/com/woocommerce/android/extensions/WCSSRModelExt.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WooCommerce/src/main/kotlin/com/woocommerce/android/extensions/WCSSRModelExt.kt b/WooCommerce/src/main/kotlin/com/woocommerce/android/extensions/WCSSRModelExt.kt index 580f24a7392..29bee6443af 100644 --- a/WooCommerce/src/main/kotlin/com/woocommerce/android/extensions/WCSSRModelExt.kt +++ b/WooCommerce/src/main/kotlin/com/woocommerce/android/extensions/WCSSRModelExt.kt @@ -37,7 +37,7 @@ fun WCSSRModel.formatResult(): String { sb.append(HEADING_SSR) // Environment - environment?.let { it -> + environment?.let { try { sb.append(formatEnvironmentData(JSONObject(it))) } catch (e: JSONException) {