back err_name (#1976)

Signed-off-by: xuan <146319162+wxuanF@users.noreply.github.com>
This commit is contained in:
xuan
2024-03-04 11:18:38 +08:00
committed by GitHub
parent 57331182c2
commit 1ef26b29a7
11 changed files with 36 additions and 36 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ func Start(client discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) e
if apiURL == "" {
return fmt.Errorf("api url is empty")
}
if _, parseErr := url.Parse(config.Config.Object.ApiURL); parseErr != nil {
if _, err := url.Parse(config.Config.Object.ApiURL); err != nil {
return err
}
if apiURL[len(apiURL)-1] != '/' {