Schema: Fix iterator for MajorsOrX (#61363)

This commit is contained in:
malcolmholmes
2023-01-12 14:39:23 +00:00
committed by GitHub
parent 46228813e4
commit 3a1cf11055

View File

@@ -56,7 +56,7 @@ func (j *lmox) Generate(decl *DeclForGen) (codejen.Files, error) {
}
var fl codejen.Files
for sch := decl.Lineage().First(); sch != nil; sch.Successor() {
for sch := decl.Lineage().First(); sch != nil; sch = sch.Successor() {
sfg.Schema = sch.LatestInMajor()
files, err := do(sfg, fmt.Sprintf("v%v", sch.Version()[0]))
if err != nil {