From 70bed54e4842745ff1a3765b82b994c541959858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Galisteo?= Date: Wed, 20 Dec 2023 10:42:05 +0100 Subject: [PATCH] Remove useless code --- lib/xero-ruby/api_client.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/xero-ruby/api_client.rb b/lib/xero-ruby/api_client.rb index 8dc16d4b..37740014 100644 --- a/lib/xero-ruby/api_client.rb +++ b/lib/xero-ruby/api_client.rb @@ -369,18 +369,8 @@ def build_request(http_method, path, request, opts = {}) update_params_for_auth! header_params, query_params, opts[:auth_names] - req_opts = { - :method => http_method, - :headers => header_params, - :params => query_params, - :params_encoding => @config.params_encoding, - :timeout => @config.timeout, - :verbose => @config.debugging - } - if [:post, :patch, :put, :delete].include?(http_method) req_body = build_request_body(header_params, form_params, opts[:body]) - req_opts.update :body => req_body if @config.debugging @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n" end