Skip to content

Commit 55634a5

Browse files
committed
Refactor mapRSPToRSC function to improve clarity
- Updated the `mapRSPToRSC` function to remove the unused context parameter, enhancing readability and simplifying the code. - This change contributes to a cleaner implementation of the RSC mapping logic. Signed-off-by: Slava V <vyacheslav.voytenok@flant.com>
1 parent 9dce08a commit 55634a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • images/controller/internal/controllers/rsc_controller

images/controller/internal/controllers/rsc_controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func BuildController(mgr manager.Manager) error {
6666

6767
// mapRSPToRSC maps a ReplicatedStoragePool to all ReplicatedStorageClass resources that reference it.
6868
func mapRSPToRSC() handler.MapFunc {
69-
return func(ctx context.Context, obj client.Object) []reconcile.Request {
69+
return func(_ context.Context, obj client.Object) []reconcile.Request {
7070
rsp, ok := obj.(*v1alpha1.ReplicatedStoragePool)
7171
if !ok || rsp == nil {
7272
return nil

0 commit comments

Comments
 (0)