Skip to content

Commit 017043b

Browse files
committed
Fix column header formatter return
1 parent 3cf1400 commit 017043b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/cldr/kino/data_table.ex

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ defmodule Cldr.Kino.DataTable do
33

44
@dialyzer {:nowarn_function, [format: 2]}
55
def format(:__header__, value) when is_atom(value) do
6-
value
7-
|> to_string()
8-
|> String.capitalize()
9-
|> String.replace("_", " ")
6+
string =
7+
value
8+
|> to_string()
9+
|> String.capitalize()
10+
|> String.replace("_", " ")
11+
12+
{:ok, string}
1013
end
1114

1215
def format(_key, value) do

0 commit comments

Comments
 (0)