Load a generator with no data, a repeat or count of 0, and a name a choice's item binds for that item's own reads

This commit is contained in:
2026-10-07 23:49:25 +02:00
committed by Lillem4n
parent 1e159fdf3a
commit f036f859d6
8 changed files with 48 additions and 53 deletions
-4
View File
@@ -1,7 +1,6 @@
package fejkdata
import (
"fmt"
"strings"
"github.com/larvit/fejkdata/internal/datafiles"
@@ -16,9 +15,6 @@ func loadData(sources []datafiles.Source) (map[string]node, error) {
}
mergeChildren(root, g.children)
}
if len(root) == 0 {
return nil, fmt.Errorf("no .json data found")
}
if err := categoryPipeline(categorySites(&folder{children: root}), root).run(); err != nil {
return nil, err
}