mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-01 10:47:38 +00:00
node: prefer nil slices over zero-length slices (#19083)
This commit is contained in:
parent
4cb240981e
commit
ef8fa666d3
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ func (n *Node) Start() error {
|
||||||
return convertFileLockError(err)
|
return convertFileLockError(err)
|
||||||
}
|
}
|
||||||
// Start each of the services
|
// Start each of the services
|
||||||
started := []reflect.Type{}
|
var started []reflect.Type
|
||||||
for kind, service := range services {
|
for kind, service := range services {
|
||||||
// Start the next service, stopping all previous upon failure
|
// Start the next service, stopping all previous upon failure
|
||||||
if err := service.Start(running); err != nil {
|
if err := service.Start(running); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue