Say why a node with no compositions answers none to compose again (ADR 0545, the empty-on-error rule)
This commit is contained in:
@@ -101,7 +101,7 @@ func followKept(ctx context.Context, open *stores, node string, modules map[stri
|
||||
lister, err := at.bucket.ListKeys(ctx)
|
||||
if err != nil {
|
||||
if errors.Is(err, jetstream.ErrNoKeysFound) {
|
||||
return nil, nil
|
||||
return nil, nil // empty-on-error: a node with no compositions keeps none to compose again
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user