Permalink
Browse files

two-tuple clause now tracks existence instead of trueness

  • Loading branch information...
keynslug committed Feb 16, 2012
1 parent df03ce4 commit 1e484beadccceb4017ae66c9f874f00a70ba8fe6
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/env_patcher.erl
View
@@ -136,7 +136,12 @@ scatter_options(AppName, Options) ->
end.
check_clause({AppName, Path}, Gather) ->
- check_clause({AppName, Path, true}, Gather);
+ Unique = make_ref(),
+ Options = Gather(AppName),
+ case deepprops:get(Path, Options, Unique) of
+ Unique -> false;
+ _ -> true
+ end;
check_clause({AppName, Path = [_ | _], Value}, Gather) ->
Unique = make_ref(),

0 comments on commit 1e484be

Please sign in to comment.