From 46bfafd681a13703e7494babf45a99b4fc52385b Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 3 Oct 2022 11:33:47 +0530 Subject: [PATCH] refactor(common): pass Modifier to `UserProfileInternal` --- .../main/kotlin/dev/msfjarvis/claw/common/user/UserProfile.kt | 2 +- detekt-baselines/common.xml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/common/src/main/kotlin/dev/msfjarvis/claw/common/user/UserProfile.kt b/common/src/main/kotlin/dev/msfjarvis/claw/common/user/UserProfile.kt index 9764a709..16fdb9bd 100644 --- a/common/src/main/kotlin/dev/msfjarvis/claw/common/user/UserProfile.kt +++ b/common/src/main/kotlin/dev/msfjarvis/claw/common/user/UserProfile.kt @@ -50,7 +50,7 @@ fun UserProfile( } when (user) { is Success<*> -> { - UserProfileInternal((user as Success).data) + UserProfileInternal(user = (user as Success).data, modifier = modifier) } is Error -> { val error = user as Error diff --git a/detekt-baselines/common.xml b/detekt-baselines/common.xml index 0a9315d8..961f9981 100644 --- a/detekt-baselines/common.xml +++ b/detekt-baselines/common.xml @@ -18,6 +18,5 @@ SwallowedException:UrlLauncher.kt$UrlLauncher$e: ActivityNotFoundException ThrowingExceptionsWithoutMessageOrCause:NetworkError.kt$Throwable() UnnecessaryAbstractClass:BasePaparazziTest.kt$BasePaparazziTest$BasePaparazziTest - UnusedPrivateMember:UserProfile.kt$modifier: Modifier = Modifier