mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
Code format fixup
This commit is contained in:
parent
a4bd90ff8a
commit
3ac4b90e8f
1 changed files with 3 additions and 1 deletions
|
|
@ -272,7 +272,9 @@ func (c *DockerCommand) assignContainersToServices(containers []*Container, serv
|
||||||
|
|
||||||
// Walk the list of Containers, categorizing them as either associated with a
|
// Walk the list of Containers, categorizing them as either associated with a
|
||||||
// Service or as standalone.
|
// Service or as standalone.
|
||||||
standaloneContainers := make([]*Container, 0, len(containers) - len(serviceContainerIds))
|
serviceContainerCount := len(serviceContainerIds)
|
||||||
|
standaloneContainerCount := len(containers) - serviceContainerCount
|
||||||
|
standaloneContainers := make([]*Container, 0, standaloneContainerCount)
|
||||||
for _, container := range containers {
|
for _, container := range containers {
|
||||||
if !container.OneOff && serviceContainerIds[container.ID] {
|
if !container.OneOff && serviceContainerIds[container.ID] {
|
||||||
service := serviceMap[container.ServiceName]
|
service := serviceMap[container.ServiceName]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue