Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NickNeck committed May 10, 2023
1 parent e18e765 commit ab7c5e4
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/time_zone_info/time_zone_database.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule TimeZoneInfo.TimeZoneDatabase do
alias TimeZoneInfo.IsoDays
alias TimeZoneInfo.Transformer.RuleSet

@compile {:inline, gap: 2, convert: 1, to_wall: 1, to_wall: 2, convert: 1}
@compile {:inline, gap: 2, convert: 1, to_wall: 1, to_wall: 2, convert: 1, transitions: 3}

@impl true
def time_zone_periods_from_wall_datetime(%NaiveDateTime{}, "Etc/UTC"),
Expand Down Expand Up @@ -246,13 +246,10 @@ defmodule TimeZoneInfo.TimeZoneDatabase do
defp to_wall({at, {utc_offset, std_offset, _zone_abbr, _wall_period}}),
do: at + utc_offset + std_offset

defp to_wall(
{at, {_, _, _, _}},
{_, {utc_offset, std_offset, _zone_abbr, _wall_period}}
),
do: at + utc_offset + std_offset
defp to_wall({at, _zone_info}, {_, {utc_offset, std_offset, _zone_abbr, _wall_period}}),
do: at + utc_offset + std_offset

defp convert({_, {utc_offset, std_offset, zone_abbr, wall_period}}),
defp convert({_at, {utc_offset, std_offset, zone_abbr, wall_period}}),
do: %{
utc_offset: utc_offset,
std_offset: std_offset,
Expand Down

0 comments on commit ab7c5e4

Please sign in to comment.