diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-03-14 11:53:05 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-03-14 11:53:05 -0700 |
commit | c031a6182bef7f689b2d80f418ae1b80669168a3 (patch) | |
tree | 627f24bc48fd352dd82a1588a514349c5924d9eb /lib/chef/http | |
parent | 365064280c93d519fdacbf032c0c21057e5549c9 (diff) | |
download | chef-c031a6182bef7f689b2d80f418ae1b80669168a3.tar.gz |
fix some UselessAssignment caseslcg/useless-assignment
Diffstat (limited to 'lib/chef/http')
-rw-r--r-- | lib/chef/http/validate_content_length.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/chef/http/validate_content_length.rb b/lib/chef/http/validate_content_length.rb index 81d3b0fb74..c1073867d3 100644 --- a/lib/chef/http/validate_content_length.rb +++ b/lib/chef/http/validate_content_length.rb @@ -84,7 +84,6 @@ class Chef def validate(http_response, response_length) content_length = response_content_length(http_response) transfer_encoding = http_response["transfer-encoding"] - content_encoding = http_response["content-encoding"] if content_length.nil? Chef::Log.debug "HTTP server did not include a Content-Length header in response, cannot identify truncated downloads." |