Slack::Notifier::post (slack-notifier-2.3.1) returns an array of UserAgent::Result (#1878)

This commit is contained in:
Jochen Hepp 2018-04-19 08:04:23 +02:00 committed by Muhammad Nuzaihan Bin Kamal Luddin
parent 2f7f9bb183
commit 0afa283a20

View file

@ -181,7 +181,7 @@ class Transaction::Slack
result = notifier.ping result[:subject],
attachments: [attachment]
end
if !result.success?
if !result.empty? && !result[0].success?
if sent_value
Cache.delete(cache_key)
end