Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Scarsz committed Dec 15, 2023
1 parent fef7285 commit d701831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/main/java/me/scarsz/jdaappender/LogItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected String format(@NotNull HandlerConfig config) {
StringBuilder builder = new StringBuilder();

if (config.getPrefixer() != null) builder.append(config.getPrefixer().apply(this));
if (config.isUseCodeBlocks()) builder.append(message); else builder.append(handler.escapeMarkdown(message));
builder.append(config.isUseCodeBlocks() ? message : handler.escapeMarkdown(message));
if (config.getSuffixer() != null) builder.append(config.getSuffixer().apply(this));
if (throwable != null) {
try (StringWriter stringWriter = new StringWriter()) {
Expand Down

0 comments on commit d701831

Please sign in to comment.