Skip to content

Commit

Permalink
refactor: clean-up hours function
Browse files Browse the repository at this point in the history
  • Loading branch information
nunom27 committed Sep 19, 2024
1 parent 52fab76 commit 2abfbf4
Showing 1 changed file with 3 additions and 27 deletions.
30 changes: 3 additions & 27 deletions lib/atomic_web/live/calendar_live/components/week.ex
Original file line number Diff line number Diff line change
Expand Up @@ -258,31 +258,7 @@ defmodule AtomicWeb.CalendarLive.Components.CalendarWeek do
end
end

defp hours,
do: [
"0H",
"1H",
"2H",
"3H",
"4H",
"5H",
"6H",
"7H",
"8H",
"9H",
"10H",
"11H",
"12H",
"13H",
"14H",
"15H",
"16H",
"17H",
"18H",
"19H",
"20H",
"21H",
"22H",
"23H"
]
defp hours do
0..23 |> Enum.map(fn n -> "#{n}H" end)
end
end

0 comments on commit 2abfbf4

Please sign in to comment.