Skip to content

Commit 11eb2b3

Browse files
author
Feña Agar
committed
fixes issue #282
1 parent b4149bf commit 11eb2b3

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)