We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b79979 commit f6c3588Copy full SHA for f6c3588
lib/elixir/scripts/infer.exs
@@ -69,9 +69,11 @@ true = URI in modules and Version.Requirement in modules
69
end,
70
timeout: :infinity
71
)
72
+ # Get all results first to avoid writing files
73
+ # while we are still doing inference
74
+ |> Enum.to_list()
75
|> Enum.map(fn {:ok, {module, path, new_binary}} ->
- # Only write to files once we are done to avoid the result
- # of one task affecting other ones
76
+
77
File.write!(path, new_binary)
78
{module, path}
79
end)
0 commit comments