Skip to content

Commit 3c28eb5

Browse files
committed
Merge pull request #283 from elfenars/fix_282
Fix for issue #282
2 parents 2fa2b71 + 11eb2b3 commit 3c28eb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/exception_notifier/slack_notifier.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def deep_reject(hash, block)
4848
deep_reject(data, @ignore_data_if) if @ignore_data_if.is_a?(Proc)
4949
text = data.map{|k,v| "#{k}: #{v}"}.join(', ')
5050

51-
if text.present?
51+
unless text.nil? || text.empty?
5252
text = ['*Data:*', text].join("\n")
5353
[message, text].join("\n")
5454
else

0 commit comments

Comments
 (0)