Skip to content

Commit

Permalink
Fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Jun 17, 2024
1 parent 2040814 commit 11eb70b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/flame/code_sync.ex
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,8 @@ defmodule FLAME.CodeSync do
%{acc | reg_paths: [dir | acc.reg_paths], seen: new_seen}
end
end)
|> then(fn %{cons_paths: cons, reg_paths: reg, beams_paths: beams} ->
consolidated = Enum.reverse(cons)
regular = Enum.reverse(reg)
|> then(fn %{cons_paths: consolidated, reg_paths: regular, beams_paths: beams} ->
# we want to prepend consolidated and regular paths in reverse order, which they are already in
sync_beams = Enum.reverse(beams)

if pkg.verbose do
Expand Down

0 comments on commit 11eb70b

Please sign in to comment.