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

Signed-off-by: pinglanlu <pinglanlu@outlook.com>
This commit is contained in:
pinglanlu 2024-11-06 17:39:59 +08:00
parent 3c5551df68
commit 7f6a85c596

View file

@ -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
}