Skip to content

Commit

Permalink
Fixing the sc variable value unused lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
shlokc9 committed Sep 3, 2024
1 parent 63a2e4e commit 85bde93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/csi/file_restore_inspector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 85bde93

Please sign in to comment.