Skip to content

Commit

Permalink
[DT-809]: fix already-present-map-value-pattern-match bug
Browse files Browse the repository at this point in the history
  • Loading branch information
iamafanasyev committed Feb 15, 2022
1 parent 60fc15f commit b07822a
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,12 @@ defmodule Konvex.Implementation.Riak.Ability.ToPutTextMapValue do
:ok,
{
:map,
[
{{<<_, _ :: binary>> = _entry_key, _entry_type}, <<_ :: binary>> = _entry_value}
| _rest_entries
] = fetched_map_entries,
fetched_map_entries,
[] = _uncommitted_added_map_entries,
[] = _uncommitted_removed_map_keys,
casual_context_that_has_to_be_preserved
}
} when is_binary(casual_context_that_has_to_be_preserved) ->
} when is_list(fetched_map_entries) and is_binary(casual_context_that_has_to_be_preserved) ->
{
:map,
fetched_map_entries,
Expand Down

0 comments on commit b07822a

Please sign in to comment.