Commit 0623f7bc authored by xiangpengzhao's avatar xiangpengzhao

Return nil directly when err is nil.

parent faffbe4e
......@@ -60,7 +60,7 @@ func NewClusterClientSet(c *federation_v1beta1.Cluster) (*ClusterClient, error)
return nil, nil
}
}
return &clusterClientSet, err
return &clusterClientSet, nil
}
// GetClusterHealthStatus gets the kubernetes cluster health status by requesting "/healthz"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment