Skip to content

Commit

Permalink
♻️ Use SequenceSet[arg] for search arg coercion
Browse files Browse the repository at this point in the history
This catches invalid args slightly sooner.
  • Loading branch information
nevans committed Nov 8, 2024
1 parent bad9ec4 commit d35835c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/imap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3195,7 +3195,7 @@ def normalize_searching_criteria(criteria)
return RawData.new(criteria) if criteria.is_a?(String)
criteria.map {|i|
if coerce_search_arg_to_seqset?(i)
SequenceSet.new(i)
SequenceSet[i]
else
i
end
Expand Down

0 comments on commit d35835c

Please # to comment.