cleanup unused err check
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
This commit is contained in:
parent
4c7c15ae5b
commit
664d27fbcd
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue