overkill to use String.format() here

This commit is contained in:
Ben Fry
2022-03-11 21:20:30 -05:00
parent 5d6418b604
commit 0fca8c6112
@@ -261,7 +261,7 @@ class StatusPanel extends JPanel {
} else {
String sentence = contrib.getSentence();
if (sentence == null || sentence.isEmpty()) {
sentence = String.format("<i>%s</i>", Language.text("contrib.errors.description_unavailable"));
sentence = "<i>" + Language.text("contrib.errors.description_unavailable") + "</i>";
} else {
sentence = Util.sanitizeHtmlTags(sentence);
sentence = Util.markDownLinksToHtml(sentence);