diff options
-rw-r--r-- | lib/chef/data_collector.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/data_collector.rb b/lib/chef/data_collector.rb index 39e5196a10..8d76f8a7b2 100644 --- a/lib/chef/data_collector.rb +++ b/lib/chef/data_collector.rb @@ -182,7 +182,7 @@ class Chef events.unregister(self) unless Chef::Config[:data_collector][:output_locations] begin - code = e&.response&.code&.to_s + code = e&.response&.code.to_s rescue # i really don't care end |