Skip to content

Commit f6c3588

Browse files
committed
YES
1 parent 4b79979 commit f6c3588

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/elixir/scripts/infer.exs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ true = URI in modules and Version.Requirement in modules
6969
end,
7070
timeout: :infinity
7171
)
72+
# Get all results first to avoid writing files
73+
# while we are still doing inference
74+
|> Enum.to_list()
7275
|> Enum.map(fn {:ok, {module, path, new_binary}} ->
73-
# Only write to files once we are done to avoid the result
74-
# of one task affecting other ones
76+
7577
File.write!(path, new_binary)
7678
{module, path}
7779
end)

0 commit comments

Comments
 (0)