Skip to content

Commit

Permalink
fix golangci reported issues
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Schuppert <[email protected]>
  • Loading branch information
stuggi committed Sep 17, 2024
1 parent 85ac3a1 commit 0174a0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion controllers/glance_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (r *GlanceReconciler) SetupWithManager(mgr ctrl.Manager) error {
return err
}

memcachedFn := func(ctx context.Context, o client.Object) []reconcile.Request {
memcachedFn := func(_ context.Context, o client.Object) []reconcile.Request {
result := []reconcile.Request{}

// get all Glance CRs
Expand Down
6 changes: 3 additions & 3 deletions controllers/glanceapi_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (r *GlanceAPIReconciler) SetupWithManager(mgr ctrl.Manager) error {
}

// Watch for changes to any CustomServiceConfigSecrets. Global secrets
svcSecretFn := func(ctx context.Context, o client.Object) []reconcile.Request {
svcSecretFn := func(_ context.Context, o client.Object) []reconcile.Request {
var namespace string = o.GetNamespace()
var secretName string = o.GetName()
result := []reconcile.Request{}
Expand Down Expand Up @@ -275,7 +275,7 @@ func (r *GlanceAPIReconciler) SetupWithManager(mgr ctrl.Manager) error {
}

// Watch for changes to NADs
nadFn := func(ctx context.Context, o client.Object) []reconcile.Request {
nadFn := func(_ context.Context, o client.Object) []reconcile.Request {
result := []reconcile.Request{}

// get all GlanceAPI CRs
Expand Down Expand Up @@ -303,7 +303,7 @@ func (r *GlanceAPIReconciler) SetupWithManager(mgr ctrl.Manager) error {
return nil
}

memcachedFn := func(ctx context.Context, o client.Object) []reconcile.Request {
memcachedFn := func(_ context.Context, o client.Object) []reconcile.Request {
result := []reconcile.Request{}

// get all GlanceAPIs CRs
Expand Down

0 comments on commit 0174a0a

Please sign in to comment.