Skip to content

Commit

Permalink
Update lib/flame/code_sync.ex
Browse files Browse the repository at this point in the history
Co-authored-by: José Valim <jose.valim@dashbit.co>
  • Loading branch information
chrismccord and josevalim committed Jun 17, 2024
1 parent 2f0fa47 commit bf0bcb2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/flame/code_sync.ex
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@ defmodule FLAME.CodeSync do

module_to_purge =
for path <- deleted_paths,
basename = Path.basename(path),
[mod | _] = String.split(basename, ".beam"),
mod != basename,
do: Module.concat([mod])
do: path |> Path.basename(".beam") |> String.to_atom()

%CodeSync{
current
Expand Down

0 comments on commit bf0bcb2

Please sign in to comment.