fix(listing): narrow the list fallback per review

Signed-off-by: mr javad seydi <seydi.birjand@gmail.com>
This commit is contained in:
mr javad seydi
2026-09-23 18:22:56 +03:30
parent 258b167b1c
commit 8c784f6133
4 changed files with 272 additions and 28 deletions
-10
View File
@@ -461,16 +461,6 @@ func (m metaCacheEntries) firstFound() (first *metaCacheEntry, n int) {
return first, n
}
// firstObject returns the first entry that contains object metadata.
func (m metaCacheEntries) firstObject() *metaCacheEntry {
for i := range m {
if m[i].isObject() {
return &m[i]
}
}
return nil
}
// names will return all names in order.
// Since this allocates it should not be used in critical functions.
func (m metaCacheEntries) names() []string {