Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix minor errors found by Dialyzer #70

Merged
merged 2 commits into from
Jun 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/elasticsearch/api/aws.ex
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ if Code.ensure_loaded?(Sigaws) do
def build_signed_request(url, options, default_headers) when is_nil(default_headers) do
{:ok, signed_data, _} = Sigaws.sign_req(url, options)

Map.merge(%{"Content-Type": "application/json"}, signed_data)
Map.merge(%{"Content-Type" => "application/json"}, signed_data)
end

def build_signed_request(url, options, default_headers) do
Expand Down
4 changes: 2 additions & 2 deletions lib/elasticsearch/indexing/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ defmodule Elasticsearch.Index do

with :ok <- create_from_file(config, name, settings_file),
:ok <- Bulk.upload(config, name, index_config),
:ok <- __MODULE__.alias(config, name, alias),
:ok <- clean_starting_with(config, alias, 2),
:ok <- __MODULE__.alias(config, name, to_string(alias)),
:ok <- clean_starting_with(config, to_string(alias), 2),
:ok <- refresh(config, name) do
:ok
end
Expand Down