From 85bde9385c622aedaf2cb69796b3a751c6e41d33 Mon Sep 17 00:00:00 2001 From: Shlok Chaudhari Date: Tue, 3 Sep 2024 13:14:16 -0500 Subject: [PATCH] Fixing the sc variable value unused lint error --- pkg/csi/file_restore_inspector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/csi/file_restore_inspector.go b/pkg/csi/file_restore_inspector.go index 0a85db7..85d5799 100644 --- a/pkg/csi/file_restore_inspector.go +++ b/pkg/csi/file_restore_inspector.go @@ -171,7 +171,7 @@ func (f *fileRestoreSteps) ValidateArgs(ctx context.Context, args *types.FileRes if err != nil { return nil, nil, nil, nil, errors.Wrap(err, "Failed to validate source PVC") } - sc, err = f.validateOps.ValidateStorageClass(ctx, *restorePVC.Spec.StorageClassName) + _, err = f.validateOps.ValidateStorageClass(ctx, *restorePVC.Spec.StorageClassName) if err != nil { return nil, nil, nil, nil, errors.Wrap(err, "Failed to validate StorageClass for restore PVC") }