refactor(common): pass Modifier to UserProfileInternal

This commit is contained in:
Harsh Shandilya 2022-10-03 11:33:47 +05:30
parent 999f2dfb01
commit 46bfafd681
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View file

@ -50,7 +50,7 @@ fun UserProfile(
} }
when (user) { when (user) {
is Success<*> -> { is Success<*> -> {
UserProfileInternal((user as Success<User>).data) UserProfileInternal(user = (user as Success<User>).data, modifier = modifier)
} }
is Error -> { is Error -> {
val error = user as Error val error = user as Error

View file

@ -18,6 +18,5 @@
<ID>SwallowedException:UrlLauncher.kt$UrlLauncher$e: ActivityNotFoundException</ID> <ID>SwallowedException:UrlLauncher.kt$UrlLauncher$e: ActivityNotFoundException</ID>
<ID>ThrowingExceptionsWithoutMessageOrCause:NetworkError.kt$Throwable()</ID> <ID>ThrowingExceptionsWithoutMessageOrCause:NetworkError.kt$Throwable()</ID>
<ID>UnnecessaryAbstractClass:BasePaparazziTest.kt$BasePaparazziTest$BasePaparazziTest</ID> <ID>UnnecessaryAbstractClass:BasePaparazziTest.kt$BasePaparazziTest$BasePaparazziTest</ID>
<ID>UnusedPrivateMember:UserProfile.kt$modifier: Modifier = Modifier</ID>
</CurrentIssues> </CurrentIssues>
</SmellBaseline> </SmellBaseline>