summaryrefslogtreecommitdiff
path: root/lib/chef/http
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-02-18 15:59:16 -0800
committerTim Smith <tsmith84@gmail.com>2020-02-18 15:59:16 -0800
commitf64cf7ddf79259a71c5adfdcd1ecba9b85122b01 (patch)
tree6e33ae32feb1e8acec42c8d0f06a1bb85de2233c /lib/chef/http
parentc9414338729decf217c8bfc37b1d405619c44331 (diff)
downloadchef-f64cf7ddf79259a71c5adfdcd1ecba9b85122b01.tar.gz
Chefstyle fixes identified with Rubocop 0.80
The new Rubocop detects more unnecessary returns. This fixes these ahead of time so we can roll out the new Rubocop engine without breaking builds later. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/http')
-rw-r--r--lib/chef/http/json_output.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/http/json_output.rb b/lib/chef/http/json_output.rb
index 62fa379096..ca738c8981 100644
--- a/lib/chef/http/json_output.rb
+++ b/lib/chef/http/json_output.rb
@@ -65,7 +65,7 @@ class Chef
if http_response.body
Chef::Log.trace("Response body contains:\n#{http_response.body.length < 256 ? http_response.body : http_response.body[0..256] + " [...truncated...]"}")
end
- return [http_response, rest_request, http_response.body.to_s]
+ [http_response, rest_request, http_response.body.to_s]
end
end