Skip to content

Commit

Permalink
fix: updated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahpurcell committed Feb 12, 2025
1 parent f9fc718 commit 7bf4bb7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/skate/detours/detours.ex
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ defmodule Skate.Detours.Detours do
activated_at: activated_at,
estimated_duration: estimated_duration
} = db_detour
) when estimated_duration != nil do
)
when estimated_duration != nil do
details = DetailedDetour.from(:active, db_detour)

details &&
Expand Down Expand Up @@ -139,14 +140,9 @@ defmodule Skate.Detours.Detours do
nil
end

# Missed this, but this description no longer fits

@doc """
Takes a `Skate.Detours.Db.Detour` struct and a `Skate.Settings.Db.User` id
Takes a `Skate.Detours.Db.Detour` struct
and returns a `t:Detour.status/0` based on the state of the detour.
otherwise returns `nil` if it is a draft but does not belong to the provided
user
"""
@spec categorize_detour(detour :: map()) :: Detour.status()
def categorize_detour(%{state_value: state_value}) when not is_nil(state_value) do
Expand Down

0 comments on commit 7bf4bb7

Please sign in to comment.