Skip to content

Commit e5bbc73

Browse files
Remove duplicated is_integer in Calendar.ISO.valid_date?/3 (#13556)
1 parent 1fec26d commit e5bbc73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/calendar/iso.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ defmodule Calendar.ISO do
13641364
@spec valid_date?(year, month, day) :: boolean
13651365
def valid_date?(year, month, day)
13661366
when is_integer(year) and is_integer(month) and is_integer(day) do
1367-
is_year(year) and is_month(month) and day in 1..days_in_month(year, month)
1367+
is_month(month) and day in 1..days_in_month(year, month)
13681368
end
13691369

13701370
@doc """

0 commit comments

Comments
 (0)