diff options
Diffstat (limited to 'service/container.go')
-rw-r--r-- | service/container.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/container.go b/service/container.go index 06609ffc..0be4f853 100644 --- a/service/container.go +++ b/service/container.go @@ -217,7 +217,7 @@ func (c *container) Stop() { // List all service names. func (c *container) List() []string { - names := make([]string, 0) + names := make([]string, 0, len(c.services)) for _, e := range c.services { names = append(names, e.name) } |