Skip to content

Commit 57a888f

Browse files
committed
fix: run mix format
1 parent 0cd9b65 commit 57a888f

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

lib/linguist/compiler.ex

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@ defmodule Linguist.Compiler do
4242
@simple_interpol "%{"
4343

4444
def compile(translations) do
45-
langs = translations |> Enum.reduce([], fn item, acc ->
46-
case item do
47-
{name, _paths} -> acc ++ [to_string(name)]
48-
_ -> acc
49-
end
50-
end)
45+
langs =
46+
translations
47+
|> Enum.reduce([], fn item, acc ->
48+
case item do
49+
{name, _paths} -> acc ++ [to_string(name)]
50+
_ -> acc
51+
end
52+
end)
5153

5254
translations =
5355
for {locale, source} <- translations do
@@ -76,7 +78,7 @@ defmodule Linguist.Compiler do
7678
do_t(locale, path, bindings)
7779
end
7880
end
79-
81+
8082
unquote(translations)
8183

8284
def do_t(_locale, _path, _bindings), do: {:error, :no_translation}

mix.exs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ defmodule Linguist.Mixfile do
5050
{:ex_cldr, "~> 2.37"},
5151
{:jason, "~> 1.0"},
5252
{:yaml_elixir, "~> 2.0"},
53-
5453
{:ex_doc, "~> 0.22.0", only: [:dev, :test], runtime: false},
5554
{:credo, "~> 0.9.0", only: [:dev, :test], runtime: false},
5655
{:sobelow, "~> 0.10", only: :dev, runtime: false}

0 commit comments

Comments
 (0)