Skip to content

Commit

Permalink
Update Helper.java
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-ronge authored Nov 3, 2023
1 parent dccde1a commit 2787cae
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ private static String appendUnusedInsertions(String message, String... insertion
StringBuilder messageBuilder = new StringBuilder(message);
for (String insertion : insertions) {
String separator = ": ";
insertion = Objects.toString(insertion);
if (!messageBuilder.toString().contains(insertion)) {
messageBuilder.append(separator).append(insertion);
}
Expand Down

0 comments on commit 2787cae

Please sign in to comment.