mirror of
https://github.com/status-im/consul.git
synced 2025-02-12 21:56:46 +00:00
Avoid returning a nil slice
This commit is contained in:
parent
8e74eaa684
commit
f7094f91c7
@ -955,7 +955,7 @@ func (s *Store) IntentionTopology(ws memdb.WatchSet,
|
|||||||
return 0, nil, fmt.Errorf("failed to fetch %s for %s: %v", requested, target.String(), err)
|
return 0, nil, fmt.Errorf("failed to fetch %s for %s: %v", requested, target.String(), err)
|
||||||
}
|
}
|
||||||
|
|
||||||
var resp structs.ServiceList
|
resp := make(structs.ServiceList, 0)
|
||||||
for _, svc := range services {
|
for _, svc := range services {
|
||||||
resp = append(resp, svc.Name)
|
resp = append(resp, svc.Name)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user