common: directly use string interpolation

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-06-04 17:53:58 +05:30
parent 3cebf3490c
commit 689f8cd147
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -83,9 +83,9 @@ fun LobstersItem(
)
}
SubmitterName(
text = "Submitted by %s".format(post.submitterName),
text = "Submitted by ${post.submitterName}",
avatarUrl = post.submitterAvatarUrl,
contentDescription = "Submitted by %s".format(post.submitterName),
contentDescription = "Submitted by ${post.submitterName}",
)
}
}