From 6a61efcfc3bf4c0469959ed8d2c879059449266c Mon Sep 17 00:00:00 2001 From: pinglanlu Date: Mon, 30 Dec 2024 01:03:06 +0800 Subject: [PATCH] discovery: use a more direct and less error-prone return value (#15347) Signed-off-by: pinglanlu --- discovery/uyuni/uyuni.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/discovery/uyuni/uyuni.go b/discovery/uyuni/uyuni.go index 1bd0cd2d49..a37083575c 100644 --- a/discovery/uyuni/uyuni.go +++ b/discovery/uyuni/uyuni.go @@ -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 }