Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/stream_data.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,11 @@ defmodule StreamData do
end)
end

# Dialyzer on OTP 29+ reports false-positive opacity warnings because the
# `seen` MapSet accumulator is threaded through these recursive clauses. We
# only ever touch it through the MapSet API, so the warnings are spurious.
@dialyzer {:nowarn_function, uniq_list_of: 9}

defp uniq_list_of(
_data,
_uniq_fun,
Expand Down Expand Up @@ -2171,7 +2176,7 @@ defmodule StreamData do
map(positive_integer(), &Date.add(min, &1))

{min = %Date{}, max = %Date{}, nil} ->
if Date.before?(max, min) do
if Date.compare(max, min) == :lt do
raise ArgumentError, """
expected :max to be after or equal to :min, got:

Expand Down
Loading