Fix: sentry issue for slack incoming files check (#4656)

Interpreter error for nil. any? added nil. present?

Fixes: https://sentry.io/share/issue/48c10d26490f4bdaab78c82244fcea98/
This commit is contained in:
Tejaswini Chile
2022-05-09 23:54:45 +05:30
committed by GitHub
parent 0eeab8c56c
commit f64cf85ab2
2 changed files with 10 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ class Integrations::Slack::IncomingMessageBuilder
if message.present?
SUPPORTED_MESSAGE_TYPES.include?(message[:type]) && !attached_file_message?
else
params[:event][:files].any? && !attached_file_message?
params[:event][:files].present? && !attached_file_message?
end
end