From ac539815d946653441d7a472b6cab4f717f76838 Mon Sep 17 00:00:00 2001 From: Licho Date: Tue, 18 Feb 2020 10:38:28 +0100 Subject: [PATCH] Make it show correct branch name --- .../tcdiscordwebhooks/notificator/DiscordNotificator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tc-discord-webhooks-server/src/main/java/com/github/playerforcehd/tcdiscordwebhooks/notificator/DiscordNotificator.java b/tc-discord-webhooks-server/src/main/java/com/github/playerforcehd/tcdiscordwebhooks/notificator/DiscordNotificator.java index f2f08a6..2c1effb 100644 --- a/tc-discord-webhooks-server/src/main/java/com/github/playerforcehd/tcdiscordwebhooks/notificator/DiscordNotificator.java +++ b/tc-discord-webhooks-server/src/main/java/com/github/playerforcehd/tcdiscordwebhooks/notificator/DiscordNotificator.java @@ -187,7 +187,7 @@ private DiscordEmbedField[] buildFieldsForRunningBuild(SRunningBuild sRunningBui // Branch Branch branch = sRunningBuild.getBranch(); String branchName = "Default"; - if (branch != null && branch.getName().equals(Branch.DEFAULT_BRANCH_NAME)) { + if (branch != null && !branch.getName().equals(Branch.DEFAULT_BRANCH_NAME)) { branchName = branch.getDisplayName(); } discordEmbedFields.add(new DiscordEmbedField("Branch", branchName, true));