From 5c2149806033825def4e213f9bfe129c9e38e669 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Wed, 11 Sep 2019 05:40:19 +0200 Subject: [PATCH] Misnamed variables (#68) --- .../plugins/rocketchatnotifier/RocketChatNotifier.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/jenkins/plugins/rocketchatnotifier/RocketChatNotifier.java b/src/main/java/jenkins/plugins/rocketchatnotifier/RocketChatNotifier.java index 81b3b68c..65dd1c8a 100644 --- a/src/main/java/jenkins/plugins/rocketchatnotifier/RocketChatNotifier.java +++ b/src/main/java/jenkins/plugins/rocketchatnotifier/RocketChatNotifier.java @@ -397,11 +397,11 @@ public RocketClient newRocketChatClient(AbstractBuild r, BuildListener listener) } String webhookTokenCredentialId = this.webhookTokenCredentialId; if (StringUtils.isEmpty(webhookTokenCredentialId)) { - channel = getDescriptor().getWebhookTokenCredentialId(); + webhookTokenCredentialId = getDescriptor().getWebhookTokenCredentialId(); } String webhookToken = this.webhookToken; if (StringUtils.isEmpty(webhookToken)) { - channel = getDescriptor().getWebhookToken(); + webhookToken = getDescriptor().getWebhookToken(); } EnvVars env;