diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-07-07 01:22:04 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-06 17:22:04 +0200 |
commit | 5f4281f7d17a4b9e940f9d2d43ec1a4494744d30 (patch) | |
tree | bc92a38710e04ebcc23ead5e07ffd175579a573a /src/main/java | |
parent | 0c94c8cf85824c2a8798a4c72d345738b1583388 (diff) | |
download | NotEnoughUpdates-5f4281f7d17a4b9e940f9d2d43ec1a4494744d30.tar.gz NotEnoughUpdates-5f4281f7d17a4b9e940f9d2d43ec1a4494744d30.tar.bz2 NotEnoughUpdates-5f4281f7d17a4b9e940f9d2d43ec1a4494744d30.zip |
Adding /neustats repo (#748)
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/DiscordMarkdownBuilder.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/DiscordMarkdownBuilder.java b/src/main/java/io/github/moulberry/notenoughupdates/util/DiscordMarkdownBuilder.java index 3c6c5f3d..941615fb 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/DiscordMarkdownBuilder.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/DiscordMarkdownBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 NotEnoughUpdates contributors + * Copyright (C) 2022-2023 NotEnoughUpdates contributors * * This file is part of NotEnoughUpdates. * @@ -33,7 +33,10 @@ public class DiscordMarkdownBuilder { } public DiscordMarkdownBuilder append(String key, Object value) { - builder.append("[").append(key).append("]").append("[").append(value).append("]").append("\n"); + if (!key.isEmpty()) { + builder.append("[").append(key).append("]"); + } + builder.append("[").append(value).append("]").append("\n"); return this; } |