From 499ad6d182d6993b1d149a5ee96dbd37d14cacd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Tue, 24 May 2022 21:52:50 +0200 Subject: [PATCH] core: Micro-optim in run() (#4810) --- caddy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddy.go b/caddy.go index 86935f81..d1550922 100644 --- a/caddy.go +++ b/caddy.go @@ -442,7 +442,7 @@ func run(newCfg *Config, start bool) error { // Start err = func() error { - var started []string + started := make([]string, 0, len(newCfg.apps)) for name, a := range newCfg.apps { err := a.Start() if err != nil {