Skip to content

Commit 07e4d73

Browse files
authored
Apply suggestions from code review
1 parent a459269 commit 07e4d73

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

lib/mix/lib/mix/tasks/format.ex

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -807,18 +807,12 @@ defmodule Mix.Tasks.Format do
807807
:ok
808808
end
809809

810-
defp check!(
811-
{[{:exit, :stdin, exception, stacktrace} | _], _not_formatted},
812-
_task_opts
813-
) do
810+
defp check!({[{:exit, :stdin, exception, stacktrace} | _], _not_formatted}, _task_opts) do
814811
Mix.shell().error("mix format failed for stdin")
815812
reraise exception, stacktrace
816813
end
817814

818-
defp check!(
819-
{[{:exit, file, exception, stacktrace} | _], _not_formatted},
820-
_task_opts
821-
) do
815+
defp check!({[{:exit, file, exception, stacktrace} | _], _not_formatted}, _task_opts) do
822816
Mix.shell().error("mix format failed for file: #{Path.relative_to_cwd(file)}")
823817
reraise exception, stacktrace
824818
end

0 commit comments

Comments
 (0)