summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/mattermost_helper.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/mattermost_helper.rb b/lib/mattermost_helper.rb
index 5868a3b..b012dfc 100644
--- a/lib/mattermost_helper.rb
+++ b/lib/mattermost_helper.rb
@@ -77,8 +77,6 @@ module MattermostHelper # rubocop:disable Metrics/ModuleLength
channel = @config.dig('mattermost', 'public_channel')
end
return unless channel
- uid = mattermost_user_id
- return unless uid
msg = { 'channel_id' => channel,
'message' => mattermost_answer_message }
curl_cmd = mattermost_build_curl_cmd('/posts', 'POST', msg)