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 5d0519c commit 29c6caeCopy full SHA for 29c6cae
lib/mix/lib/mix/tasks/format.ex
@@ -544,6 +544,8 @@ defmodule Mix.Tasks.Format do
544
defp stdin_or_wildcard("-"), do: [:stdin]
545
defp stdin_or_wildcard(path), do: path |> Path.expand() |> Path.wildcard(match_dot: true)
546
547
+ defp elixir_format("", _formatter_opts), do: ""
548
+
549
defp elixir_format(content, formatter_opts) do
550
IO.iodata_to_binary([Code.format_string!(content, formatter_opts), ?\n])
551
end
0 commit comments