mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-11 13:57:36 -08:00
discovery: use a more direct and less error-prone return value
Signed-off-by: pinglanlu <pinglanlu@outlook.com>
This commit is contained in:
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…
Reference in a new issue