Skip to content

Commit 2d6ee9f

Browse files
committed
Remove null check in TopicCard as topicUi is non-nullable.
1 parent f5a46d0 commit 2d6ee9f

File tree

1 file changed

+1
-3
lines changed
  • composeApp/src/commonMain/kotlin/com/developersbreach/kotlindictionarymultiplatform/ui/screens/topic

1 file changed

+1
-3
lines changed

composeApp/src/commonMain/kotlin/com/developersbreach/kotlindictionarymultiplatform/ui/screens/topic/TopicCard.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ fun TopicCard(
6363
.background(MaterialTheme.colorScheme.primary, CircleShape),
6464
contentAlignment = Alignment.Center,
6565
) {
66-
if (topicUi != null) {
67-
Text(text = topicUi.initial)
68-
}
66+
Text(text = topicUi.initial)
6967
}
7068

7169
Spacer(modifier = Modifier.width(12.dp))

0 commit comments

Comments
 (0)