diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-02 10:32:45 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-02 10:32:45 -0700 |
commit | 0bdd618fc5146dad3fa5a90d10a4b5e608e4663d (patch) | |
tree | 54e82256ba2c4d10f6a67164222ae46010e324f4 /lib/chef/http | |
parent | cdad2f684debda15e8cf773185e78f93892eda35 (diff) | |
download | chef-0bdd618fc5146dad3fa5a90d10a4b5e608e4663d.tar.gz |
fix Style/UnneededInterpolation
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/http')
-rw-r--r-- | lib/chef/http/auth_credentials.rb | 2 | ||||
-rw-r--r-- | lib/chef/http/http_request.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/http/auth_credentials.rb b/lib/chef/http/auth_credentials.rb index e84f6a0c5b..547b5c8a83 100644 --- a/lib/chef/http/auth_credentials.rb +++ b/lib/chef/http/auth_credentials.rb @@ -51,7 +51,7 @@ class Chef sign_obj = Mixlib::Authentication::SignedHeaderAuth.signing_object(request_params) signed = sign_obj.sign(key, use_ssh_agent: @use_ssh_agent).merge({ host: host }) - signed.inject({}) { |memo, kv| memo["#{kv[0].to_s.upcase}"] = kv[1]; memo } + signed.inject({}) { |memo, kv| memo[(kv[0].to_s.upcase).to_s] = kv[1]; memo } end end diff --git a/lib/chef/http/http_request.rb b/lib/chef/http/http_request.rb index 475043bdb4..774419a58c 100644 --- a/lib/chef/http/http_request.rb +++ b/lib/chef/http/http_request.rb @@ -152,7 +152,7 @@ class Chef end def configure_http_request(request_body = nil) - req_path = "#{path}" + req_path = (path).to_s req_path << "?#{query}" if query @http_request = case method.to_s.downcase |