From 940912948d7d0639afcb71e6239018a80ccc0ac1 Mon Sep 17 00:00:00 2001 From: rustco Date: Mon, 3 Mar 2025 17:18:50 +0800 Subject: [PATCH] fix: return nil instead of error directly Signed-off-by: rustco --- storage_drivers/ontap/api/abstraction_rest.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage_drivers/ontap/api/abstraction_rest.go b/storage_drivers/ontap/api/abstraction_rest.go index 6c0533ffc..458b564dc 100644 --- a/storage_drivers/ontap/api/abstraction_rest.go +++ b/storage_drivers/ontap/api/abstraction_rest.go @@ -2521,7 +2521,7 @@ func (d OntapAPIREST) LunListIgroupsMapped(ctx context.Context, lunPath string) names = append(names, *records.Igroup.Name) } } - return names, err + return names, nil } // IgroupListLUNsMapped returns a list LUNs mapped to the igroup @@ -2542,7 +2542,7 @@ func (d OntapAPIREST) IgroupListLUNsMapped(ctx context.Context, initiatorGroupNa names = append(names, *records.Lun.Name) } } - return names, err + return names, nil } // LunMapGetReportingNodes returns a list of LUN map details