cleanup unused err check

Signed-off-by: zhzhuang-zju <m17799853869@163.com>
This commit is contained in:
zhzhuang-zju 2025-04-03 16:02:47 +08:00
parent 4c7c15ae5b
commit 664d27fbcd
1 changed files with 0 additions and 4 deletions

View File

@ -94,10 +94,6 @@ func (r *ClusterRegisterOption) Validate(karmadaClient karmadaclientset.Interfac
return err
}
clusterIDUsed, clusterNameUsed, sameCluster := r.validateCluster(clusterList)
if err != nil {
return err
}
if isAgent && sameCluster {
return nil
}