Skip to content

Commit

Permalink
Simplify if condition
Browse files Browse the repository at this point in the history
Co-authored-by: João Duarte <[email protected]>
  • Loading branch information
andsel and jsvd authored Sep 29, 2021
1 parent 17053d7 commit d46c39b
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 @@ -287,7 +287,7 @@ def elasticsearch?(url)
# case >= 7.14
lower_headers = response.headers.transform_keys {|key| key.to_s.downcase }
product_header = lower_headers['x-elastic-product']
return false if product_header.nil? || product_header != 'Elasticsearch'
return false if product_header != 'Elasticsearch'
end
return true
rescue => e
Expand Down

0 comments on commit d46c39b

Please sign in to comment.