summaryrefslogtreecommitdiff
path: root/lib/chef/data_collector.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-10-04 12:31:38 -0700
committerTim Smith <tsmith84@gmail.com>2020-10-04 12:31:38 -0700
commitd23171c595d4768c52ae6b43c50a60f657288afc (patch)
tree99571b1208868e81e0da149978627cc0a3d7f097 /lib/chef/data_collector.rb
parent85ca32e46fe5b79656082962f0737adc2fad7a8e (diff)
downloadchef-d23171c595d4768c52ae6b43c50a60f657288afc.tar.gz
Remove extra safe navigationsafe_navigation
This is not needed here. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/data_collector.rb')
-rw-r--r--lib/chef/data_collector.rb2
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