diff --git a/cli/compose/loader/merge.go b/cli/compose/loader/merge.go index 94c4eebcea..15fc69b853 100644 --- a/cli/compose/loader/merge.go +++ b/cli/compose/loader/merge.go @@ -68,7 +68,6 @@ func mergeServices(base, override []types.ServiceConfig) ([]types.ServiceConfig, }, } for name, overrideService := range overrideServices { - overrideService := overrideService if baseService, ok := baseServices[name]; ok { if err := mergo.Merge(&baseService, &overrideService, mergo.WithAppendSlice, mergo.WithOverride, mergo.WithTransformers(specials)); err != nil { return base, errors.Wrapf(err, "cannot merge service %s", name)