mirror of https://github.com/caddyserver/caddy.git
core: Micro-optim in run() (#4810)
This commit is contained in:
parent
8e6bc36084
commit
499ad6d182
2
caddy.go
2
caddy.go
|
@ -442,7 +442,7 @@ func run(newCfg *Config, start bool) error {
|
||||||
|
|
||||||
// Start
|
// Start
|
||||||
err = func() error {
|
err = func() error {
|
||||||
var started []string
|
started := make([]string, 0, len(newCfg.apps))
|
||||||
for name, a := range newCfg.apps {
|
for name, a := range newCfg.apps {
|
||||||
err := a.Start()
|
err := a.Start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue