mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Schema: Fix iterator for MajorsOrX (#61363)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user