Skip to content

Commit c9f4326

Browse files
committed
chore(0pdd): fixed Qulice warning
1 parent a35281e commit c9f4326

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/main/java/ru/ewc/checklogic/server/CommandMetadata.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,14 @@ public CommandMetadata(final Map<String, List<String>> metadata) {
6464
*/
6565
public String namesAsHtmlList(final ServerInstance computation, final String outcome) {
6666
return this.names.stream().sorted().map(
67-
command -> """
68-
<div class="col-4 px-2">
69-
<button class="btn %2$s col-12"
70-
hx-get="/command" hx-target="body" hx-swap="beforeend"
71-
hx-vals='{"command":"%1$s"}'>%1$s</button>
72-
</div>
73-
""".formatted(command, buttonCssClass(computation, command, outcome))
67+
command -> new StringBuilder()
68+
.append("<div class='col-4 px-2'>")
69+
.append("<button class='btn %2$s col-12'")
70+
.append("hx-get='/command' hx-target='body' hx-swap='beforeend'")
71+
.append("hx-vals='{\"command\":\"%1$s\"}'>%1$s</button>")
72+
.append("</div>")
73+
.toString()
74+
.formatted(command, buttonCssClass(computation, command, outcome))
7475
).collect(Collectors.joining());
7576
}
7677

0 commit comments

Comments
 (0)