worker: Remove type casting in NewContainer call

* Because the type has the same interface as map[string]string,
  Go is happy to use the named type or the underlying type

Signed-off-by: Denise Yu <dyu@pivotal.io>
This commit is contained in:
Ciro S. Costa 2019-11-18 12:08:24 -05:00 committed by Denise Yu
parent e5be5af7c4
commit ba90cc3c1f
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ func (b *Backend) Create(gdnSpec garden.ContainerSpec) (container garden.Contain
}
cont, err := b.client.NewContainer(ctx,
gdnSpec.Handle, map[string]string(gdnSpec.Properties), oci,
gdnSpec.Handle, gdnSpec.Properties, oci,
)
if err != nil {
err = fmt.Errorf("failed to create a container in containerd: %w", err)