chore: increase coverage

This commit is contained in:
Tristan Cartledge
2024-08-14 12:32:39 +01:00
committed by quobix
parent c46147cd47
commit 888f88c3ba
2 changed files with 104 additions and 1 deletions

View File

@@ -92,7 +92,6 @@ func (o *Map[K, V]) FromOldest() iter.Seq2[K, V] {
// FromNewest returns an iterator that yields the newest key-value pair in the map.
func (o *Map[K, V]) FromNewest() iter.Seq2[K, V] {
o.OrderedMap.FromNewest()
return func(yield func(K, V) bool) {
if o == nil {
return