discovery: use a more direct and less error-prone return value

Signed-off-by: pinglanlu <pinglanlu@outlook.com>
pull/15347/head
pinglanlu 3 weeks ago
parent 3c5551df68
commit 7f6a85c596

@ -205,9 +205,6 @@ func getEndpointInfoForSystems(
err := rpcclient.Call(
"system.monitoring.listEndpoints",
[]interface{}{token, systemIDs}, &endpointInfos)
if err != nil {
return nil, err
}
return endpointInfos, err
}

Loading…
Cancel
Save