Skip to content

Commit

Permalink
Replace [0] accessor with .first()
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Oct 18, 2024
1 parent abde5b9 commit a13a199
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private fun SmallFileItemPreview(@PreviewParameter(FileUiListPreviewParameter::c
SwissTransferTheme {
Surface(color = SwissTransferTheme.materialColors.surfaceContainerHighest) {
Column(Modifier.padding(16.dp)) {
val file = files[0]
val file = files.first()

SmallFileItem(
file = file,
Expand Down

0 comments on commit a13a199

Please sign in to comment.