Build the walk root in New, drop the categories copy, and correct the node and renders comments
This commit is contained in:
@@ -126,7 +126,7 @@ func (f *Generator) FakeRecord(path string) (*Record, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("fejkdata: %w", err)
|
||||
}
|
||||
_, n, tail, err := resolveCategory(f.categories, segments)
|
||||
_, n, tail, err := resolveCategory(f.root.children, segments)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("fejkdata: %s: %w", path, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user