Skip to content

Commit

Permalink
fix: make statickcheck bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyelei committed May 11, 2024
1 parent 5857cc7 commit f3e3d01
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions controllers/apps/transformer_cluster_backup_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,7 @@ func (r *clusterBackupPolicyTransformer) Transform(ctx graph.TransformContext, d

// transformBackupPolicy transforms backup policy template to backup policy.
func (r *clusterBackupPolicyTransformer) transformBackupPolicy(comp *appsv1alpha1.ClusterComponentSpec) (*dpv1alpha1.BackupPolicy, *model.Action) {

cluster := r.OrigCluster
compDefName := comp.ComponentDefRef
if compDefName == "" {
compDefName = comp.ComponentDef
}
backupPolicyName := generateBackupPolicyName(cluster.Name, comp.Name, r.tplIdentifier)
backupPolicy := &dpv1alpha1.BackupPolicy{}
if err := r.Client.Get(r.Context, client.ObjectKey{
Expand Down

0 comments on commit f3e3d01

Please sign in to comment.