Unified Storage: Fix yield statement (#110134)

fix yield
This commit is contained in:
owensmallwood
2025-08-25 20:06:24 -06:00
committed by GitHub
parent e87652060c
commit bacb5c576c
+3 -1
View File
@@ -711,7 +711,9 @@ func (b *backend) ListModifiedSince(ctx context.Context, key resource.Namespaced
if mr.Key.Name <= lastSeen {
// resource names should be sorted alphabetically. So if not, the query is not correct.
yield(nil, fmt.Errorf("listModifiedSince: resources are not sorted by name ASC, lastSeen: %q, current: %q", lastSeen, mr.Key.Name))
if !yield(nil, fmt.Errorf("listModifiedSince: resources are not sorted by name ASC, lastSeen: %q, current: %q", lastSeen, mr.Key.Name)) {
return
}
}
lastSeen = mr.Key.Name