mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-14 22:20:12 +01:00
Go-lint clean-up
This commit is contained in:
parent
4ba21639a0
commit
cc1efc20e2
3 changed files with 7 additions and 6 deletions
|
|
@ -26,7 +26,7 @@ func (c Container) Name() string {
|
|||
}
|
||||
|
||||
func (c Container) Links() []string {
|
||||
links := []string{}
|
||||
var links []string
|
||||
|
||||
if (c.containerInfo != nil) && (c.containerInfo.HostConfig != nil) {
|
||||
for _, link := range c.containerInfo.HostConfig.Links {
|
||||
|
|
@ -81,7 +81,7 @@ func (c Container) runtimeConfig() *dockerclient.ContainerConfig {
|
|||
config.Volumes = structMapSubtract(config.Volumes, imageConfig.Volumes)
|
||||
|
||||
config.ExposedPorts = structMapSubtract(config.ExposedPorts, imageConfig.ExposedPorts)
|
||||
for p, _ := range c.containerInfo.HostConfig.PortBindings {
|
||||
for p := range c.containerInfo.HostConfig.PortBindings {
|
||||
config.ExposedPorts[p] = struct{}{}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue