node: prefer nil slices over zero-length slices (#19083)

This commit is contained in:
Matthew Halpern
2019-02-18 03:31:22 -08:00
committed by Péter Szilágyi
parent 3930f3795b
commit 7b3e3d549e
2 changed files with 2 additions and 2 deletions

View File

@@ -220,7 +220,7 @@ func (n *Node) Start() error {
return convertFileLockError(err)
}
// Start each of the services
started := []reflect.Type{}
var started []reflect.Type
for kind, service := range services {
// Start the next service, stopping all previous upon failure
if err := service.Start(running); err != nil {