mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-14 22:20:12 +01:00
some linting
This commit is contained in:
parent
1f10817b4b
commit
d0ac9f14ab
5 changed files with 23 additions and 35 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue