Skip to content

Commit 0cd928a

Browse files
committed
Fix nil.empty? => NoMethodError
1 parent bba5c7d commit 0cd928a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sidekiq/cloudwatchmetrics.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def publish
189189
unless process_utilization.nan?
190190
process_dimensions = [{name: "Hostname", value: process["hostname"]}]
191191

192-
unless process["tag"].empty?
192+
if process["tag"] && !process["tag"].to_s.empty?
193193
process_dimensions << {name: "Tag", value: process["tag"]}
194194
end
195195

0 commit comments

Comments
 (0)