Skip to content

Commit

Permalink
add nolint:gocyclo to Reconcile function
Browse files Browse the repository at this point in the history
  • Loading branch information
ushitora-anqou committed Jun 4, 2024
1 parent 559a943 commit 7cf171c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/controller/mantlebackup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ func (r *MantleBackupReconciler) createRBDSnapshot(ctx context.Context, poolName
//
// For more details, check Reconcile and its Result here:
// - https://pkg.go.dev/sigs.k8s.io/[email protected]/pkg/reconcile
//
// Reconcile is the main component of mantle-controller, so let's admit that Reconcile can be complex by `nolint:gocyclo`
//
//nolint:gocyclo
func (r *MantleBackupReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
var backup backupv1.MantleBackup
err := r.Get(ctx, req.NamespacedName, &backup)
Expand Down

0 comments on commit 7cf171c

Please sign in to comment.