Selaa lähdekoodia

bug fix: was using outer LevelsAcc variable in inner foldl

pull/605/head
Tristan Sloughter 9 vuotta sitten
vanhempi
commit
8aaff65d6b
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. +2
    -2
      src/rebar_digraph.erl

+ 2
- 2
src/rebar_digraph.erl Näytä tiedosto

@ -91,9 +91,9 @@ cull_deps(Graph, Vertices, Level, Levels, Solution, Discarded) ->
lists:foldl(fun({Key, _}=N, {NewVertices1, SolutionAcc1, LevelsAcc1, DiscardedAcc1}) ->
case dict:find(Key, SolutionAcc1) of
{ok, N} -> % already seen
{NewVertices1, SolutionAcc1, LevelsAcc, DiscardedAcc1};
{NewVertices1, SolutionAcc1, LevelsAcc1, DiscardedAcc1};
{ok, _} -> % conflict resolution!
{NewVertices1, SolutionAcc1, LevelsAcc, [N|DiscardedAcc1]};
{NewVertices1, SolutionAcc1, LevelsAcc1, [N|DiscardedAcc1]};
error ->
{[N | NewVertices1],
dict:store(Key, N, SolutionAcc1),

Ladataan…
Peruuta
Tallenna