Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Elixir doesn't export vars outside of the scope of the case #177

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/dynamo/connection/query_parser.ex
View
9 lib/dynamo/connection/query_parser.ex
@@ -79,10 +79,11 @@ defmodule Dynamo.Connection.QueryParser do
# not yet. This assumes that items are iterated in
# reverse order.
defp assign_parts([key,""|t], acc, value) do
- case Binary.Dict.get(acc, key, []) do
- current when is_list(current) -> current
- _ -> raise ParseError, message: "expected list at #{key}"
- end
+ current =
+ case Binary.Dict.get(acc, key, []) do
+ current when is_list(current) -> current
+ _ -> raise ParseError, message: "expected list at #{key}"
+ end
if value = assign_list_parts(t, value) do
Binary.Dict.put(acc, key, [value|current])
Something went wrong with that request. Please try again.