1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00

core: Micro-optim in run() (#4810)

This commit is contained in:
Kévin Dunglas 2022-05-24 21:52:50 +02:00 committed by GitHub
parent 8e6bc36084
commit 499ad6d182
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {