Skip to content

Commit

Permalink
remove nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisecheng committed Sep 2, 2023
1 parent faaba3f commit 6836f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logstash/outputs/elasticsearch/http_client/pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def perform_request(method, path, params={}, body=nil)
end

def perform_request_to_url(url, method, path, params={}, body=nil)
params[:headers] = DEFAULT_EAV_HEADER.merge(params[:headers] || {}) if params && serverless?
params[:headers] = DEFAULT_EAV_HEADER.merge(params[:headers] || {}) if serverless?
@adapter.perform_request(url, method, path, params, body)
end

Expand Down

0 comments on commit 6836f8d

Please sign in to comment.