some linting

This commit is contained in:
Fabrizio Steiner 2018-03-02 22:37:50 +01:00
parent 1f10817b4b
commit d0ac9f14ab
5 changed files with 23 additions and 35 deletions

View file

@ -155,7 +155,7 @@ func (c Container) runtimeConfig() *dockercontainer.Config {
config.Volumes = structMapSubtract(config.Volumes, imageConfig.Volumes)
// subtract ports exposed in image from container
for k, _ := range config.ExposedPorts {
for k := range config.ExposedPorts {
if _, ok := imageConfig.ExposedPorts[k]; ok {
delete(config.ExposedPorts, k)
}