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:
parent
8e6bc36084
commit
499ad6d182
1 changed files with 1 additions and 1 deletions
2
caddy.go
2
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 {
|
||||
|
|
Loading…
Reference in a new issue