summaryrefslogtreecommitdiff
path: root/lib/chef/event_dispatch
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2015-10-07 12:06:30 +0100
committerThom May <thom@chef.io>2015-11-09 15:02:39 +0000
commit28487132e3d5469c07cbe790fb46edfd555d1c12 (patch)
tree3a7eb22bf5512d98111880ad63a2f4fcbd28e0b1 /lib/chef/event_dispatch
parentc03d49c7cc3b5eb351abc9f6537a1a65692e93fc (diff)
downloadchef-28487132e3d5469c07cbe790fb46edfd555d1c12.tar.gz
Implement code review comments and fix failing tests
Diffstat (limited to 'lib/chef/event_dispatch')
-rw-r--r--lib/chef/event_dispatch/dispatcher.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/chef/event_dispatch/dispatcher.rb b/lib/chef/event_dispatch/dispatcher.rb
index affac8fb9d..7d7d2c0ad4 100644
--- a/lib/chef/event_dispatch/dispatcher.rb
+++ b/lib/chef/event_dispatch/dispatcher.rb
@@ -23,9 +23,7 @@ class Chef
# Check to see if we are dispatching to a formatter
def formatter?
@subscribers.each do |s|
- if s.class <= Chef::Formatters::Base && s.class != Chef::Formatters::NullFormatter
- return true
- end
+ return s.is_formatter? if s.respond_to?(:is_formatter?)
end
false
end