mirror of
https://github.com/kieraneglin/pinchflat.git
synced 2026-01-23 02:24:24 +00:00
Use Enum.map_join instead of Enum.map |> Enum.join
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
907766f29f
commit
0c3c19febd
1 changed files with 1 additions and 2 deletions
|
|
@ -40,8 +40,7 @@ defmodule PinchflatWeb.Settings.DiagnosticsHTML do
|
|||
|> Atom.to_string()
|
||||
|> String.replace("_", " ")
|
||||
|> String.split(" ")
|
||||
|> Enum.map(&String.capitalize/1)
|
||||
|> Enum.join(" ")
|
||||
|> Enum.map_join(" ", &String.capitalize/1)
|
||||
end
|
||||
|
||||
def format_datetime(nil), do: "-"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue