Skip to content

Commit

Permalink
Remove one more overlapping contract
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Oct 11, 2023
1 parent 1425458 commit db544e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/cldr.ex
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ defmodule Cldr do
"""
@doc since: "2.32.0"

@spec with_locale(LanguageTag.t(), fun) :: any
@spec with_locale(Locale.locale_reference(), fun) :: any
def with_locale(%Cldr.LanguageTag{} = locale, fun) when is_function(fun) do
current_locale = get_locale(locale.backend)

Expand Down Expand Up @@ -434,8 +434,6 @@ defmodule Cldr do
@doc since: "2.27.0"

@spec with_locale(Locale.locale_reference(), backend(), fun) :: any
@spec with_locale(Locale.locale_reference(), fun) :: any

def with_locale(locale, backend \\ default_backend!(), fun) when is_locale_name(locale) do
with {:ok, locale} = validate_locale(locale, backend) do
with_locale(locale, fun)
Expand Down

0 comments on commit db544e6

Please sign in to comment.