aboutsummaryrefslogtreecommitdiffhomepage
path: root/caddy.go
diff options
context:
space:
mode:
authorKévin Dunglas <[email protected]>2022-05-24 21:52:50 +0200
committerGitHub <[email protected]>2022-05-24 13:52:50 -0600
commit499ad6d182d6993b1d149a5ee96dbd37d14cacd7 (patch)
tree5897e4eb2cc7f4b3765c97921a63361bfeb0c649 /caddy.go
parent8e6bc3608402da9fce3821944acc81d92f10c8e7 (diff)
downloadcaddy-499ad6d182d6993b1d149a5ee96dbd37d14cacd7.tar.gz
caddy-499ad6d182d6993b1d149a5ee96dbd37d14cacd7.zip
core: Micro-optim in run() (#4810)
Diffstat (limited to 'caddy.go')
-rw-r--r--caddy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/caddy.go b/caddy.go
index 86935f81e..d15509228 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 {