diff options
author | Kévin Dunglas <[email protected]> | 2022-05-24 21:52:50 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-05-24 13:52:50 -0600 |
commit | 499ad6d182d6993b1d149a5ee96dbd37d14cacd7 (patch) | |
tree | 5897e4eb2cc7f4b3765c97921a63361bfeb0c649 | |
parent | 8e6bc3608402da9fce3821944acc81d92f10c8e7 (diff) | |
download | caddy-499ad6d182d6993b1d149a5ee96dbd37d14cacd7.tar.gz caddy-499ad6d182d6993b1d149a5ee96dbd37d14cacd7.zip |
core: Micro-optim in run() (#4810)
-rw-r--r-- | caddy.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |