Skip to content

Commit

Permalink
Merge pull request #70 from soundmonster/dialyzer
Browse files Browse the repository at this point in the history
Fix minor errors found by Dialyzer
  • Loading branch information
danielberkompas authored Jun 14, 2019
2 parents a1fc11c + 90c474d commit 1a7bbe7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 1a7bbe7

Please # to comment.