Skip to content

Commit 6847ad3

Browse files
authored
Fixed some minor syntax issue after lots of rebases (#625)
1 parent a5eb6da commit 6847ad3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

application/src/main/java/org/togetherjava/tjbot/logging/discord/DiscordLogForwarder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ private static String describeLogEvent(LogEvent event) {
194194
}
195195

196196
private LogMessage shortened() {
197-
String shortDescription =
198-
abbreviate(embed.getDescription(), MAX_EMBED_DESCRIPTION_SHORT);
197+
String shortDescription = MessageUtils.abbreviate(
198+
Objects.requireNonNull(embed.getDescription()), MAX_EMBED_DESCRIPTION_SHORT);
199199
WebhookEmbed shortEmbed =
200200
new WebhookEmbedBuilder(embed).setDescription(shortDescription).build();
201201

0 commit comments

Comments
 (0)