diff options
author | Thom May <thom@chef.io> | 2015-11-11 09:09:01 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2015-11-11 09:09:01 +0000 |
commit | 68d75f2d22a4a0f7c39d2eed0de6fb802a82941d (patch) | |
tree | c49f3573c20540b992def1f6e5cb923f9dcf92dd /lib/chef/event_dispatch | |
parent | db8cda192518f7d3658573cb7974eb8a6e3dd6d1 (diff) | |
download | chef-68d75f2d22a4a0f7c39d2eed0de6fb802a82941d.tar.gz |
More code reviewtm/live_execute_streaming
Diffstat (limited to 'lib/chef/event_dispatch')
-rw-r--r-- | lib/chef/event_dispatch/dispatcher.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/chef/event_dispatch/dispatcher.rb b/lib/chef/event_dispatch/dispatcher.rb index 7d7d2c0ad4..ad7df46cd0 100644 --- a/lib/chef/event_dispatch/dispatcher.rb +++ b/lib/chef/event_dispatch/dispatcher.rb @@ -22,10 +22,7 @@ class Chef # Check to see if we are dispatching to a formatter def formatter? - @subscribers.each do |s| - return s.is_formatter? if s.respond_to?(:is_formatter?) - end - false + @subscribers.any? { |s| s.respond_to?(:is_formatter?) && s.is_formatter? } end #### |