summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar √Čtienne Deparis 2020-05-27 18:11:29 +0200
committerGravatar √Čtienne Deparis 2020-05-27 18:11:29 +0200
commitf7e0b8174a184c38cc6bfc1083f8a377aedbb5c7 (patch)
tree13b3e7260f1a577a55aa20a697fe76c0baa5af86
parentea13f3004f0f06e75552961d37ca9fcb24d20d6a (diff)
downloadstatus-f7e0b8174a184c38cc6bfc1083f8a377aedbb5c7.tar.gz
status-f7e0b8174a184c38cc6bfc1083f8a377aedbb5c7.tar.xz
status-f7e0b8174a184c38cc6bfc1083f8a377aedbb5c7.zip
fix: Remove useless check
-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)