Give Fake a local hold set, as the other renders have, and drop the done round item

This commit is contained in:
2026-09-29 01:30:42 +02:00
committed by Lillem4n
parent 5a87dc04d3
commit 3af4526ef6
3 changed files with 3 additions and 7 deletions
+2 -2
View File
@@ -23,8 +23,8 @@ func (f *Generator) Fake(path string) (string, error) {
if err != nil {
return "", fmt.Errorf("fejkdata: %w", err)
}
f.set = holdSet{}
sc := renderScope{set: &f.set}
var set holdSet
sc := renderScope{set: &set}
f.root.children = f.categories
n, err := descend(f.rand, &f.root, segments, sc)
if err != nil {