Skip to content

Commit

Permalink
Fix error about passing by value in for range. Refs: https://go.dev/w…
Browse files Browse the repository at this point in the history
  • Loading branch information
rujche committed Nov 14, 2024
1 parent 6e16f37 commit 5f698a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/azd/pkg/project/scaffold_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ func infraSpec(projectConfig *ProjectConfig) (*scaffold.InfraSpec, error) {
}

// create reverse frontends -> backends mapping
for _, svc := range infraSpec.Services {
for i := range infraSpec.Services {
svc := &infraSpec.Services[i]
if front, ok := backendMapping[svc.Name]; ok {
if svc.Backend == nil {
svc.Backend = &scaffold.Backend{}
Expand Down

0 comments on commit 5f698a1

Please sign in to comment.