diff --git a/templates/main/07_relationship_to_one_eager.go.tpl b/templates/main/07_relationship_to_one_eager.go.tpl index f66b09b1..ce68d02b 100644 --- a/templates/main/07_relationship_to_one_eager.go.tpl +++ b/templates/main/07_relationship_to_one_eager.go.tpl @@ -70,11 +70,11 @@ func ({{$ltable.DownSingular}}L) Load{{$rel.Foreign}}({{if $.NoContext}}e boil.E } argsSlice := make([]interface{}, len(args)) - i := 0 - for arg := range args { - argsSlice[i] = arg - i++ - } + i := 0 + for arg := range args { + argsSlice[i] = arg + i++ + } query := NewQuery( qm.From(`{{if $.Dialect.UseSchema}}{{$.Schema}}.{{end}}{{.ForeignTable}}`), diff --git a/templates/main/08_relationship_one_to_one_eager.go.tpl b/templates/main/08_relationship_one_to_one_eager.go.tpl index 529528eb..99fec29b 100644 --- a/templates/main/08_relationship_one_to_one_eager.go.tpl +++ b/templates/main/08_relationship_one_to_one_eager.go.tpl @@ -58,11 +58,11 @@ func ({{$ltable.DownSingular}}L) Load{{$relAlias.Local}}({{if $.NoContext}}e boi } argsSlice := make([]interface{}, len(args)) - i := 0 - for arg := range args { - argsSlice[i] = arg - i++ - } + i := 0 + for arg := range args { + argsSlice[i] = arg + i++ + } query := NewQuery( qm.From(`{{if $.Dialect.UseSchema}}{{$.Schema}}.{{end}}{{.ForeignTable}}`), diff --git a/templates/main/09_relationship_to_many_eager.go.tpl b/templates/main/09_relationship_to_many_eager.go.tpl index 3afc64bd..81643be3 100644 --- a/templates/main/09_relationship_to_many_eager.go.tpl +++ b/templates/main/09_relationship_to_many_eager.go.tpl @@ -60,8 +60,8 @@ func ({{$ltable.DownSingular}}L) Load{{$relAlias.Local}}({{if $.NoContext}}e boi argsSlice := make([]interface{}, len(args)) i := 0 for arg := range args { - argsSlice[i] = arg - i++ + argsSlice[i] = arg + i++ } {{if .ToJoinTable -}}