From c714d9bbc384e34e9cf367621346d3ff9b25e70b Mon Sep 17 00:00:00 2001 From: Patrick Michalik <120058021+patrickmichalik@users.noreply.github.com> Date: Mon, 25 Sep 2023 10:28:11 +0200 Subject: [PATCH] Replace `also` with `if` in `Chart` composable function --- .../main/java/com/patrykandpatrick/vico/compose/chart/Charts.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vico/compose/src/main/java/com/patrykandpatrick/vico/compose/chart/Charts.kt b/vico/compose/src/main/java/com/patrykandpatrick/vico/compose/chart/Charts.kt index 00ab2772d..eaab7714b 100644 --- a/vico/compose/src/main/java/com/patrykandpatrick/vico/compose/chart/Charts.kt +++ b/vico/compose/src/main/java/com/patrykandpatrick/vico/compose/chart/Charts.kt @@ -132,7 +132,7 @@ public fun Chart( .value ChartBox(modifier = modifier) { - model?.also { model -> + if (model != null) { ChartImpl( chart = chart, model = model,