diff --git a/lib/skate/detours/detours.ex b/lib/skate/detours/detours.ex index d82f2128f..d13c1dec3 100644 --- a/lib/skate/detours/detours.ex +++ b/lib/skate/detours/detours.ex @@ -135,7 +135,7 @@ defmodule Skate.Detours.Detours do def categorize_detour(_, _), do: nil @spec get_detour_route(detour :: map()) :: String.t() - def get_detour_route(%{state: %{"context" => %{"route" => %{"name" => route_name}}}}), + defp get_detour_route(%{state: %{"context" => %{"route" => %{"name" => route_name}}}}), do: route_name @doc """