mirror of
https://github.com/vmware-tanzu/velero.git
synced 2025-12-23 06:15:21 +00:00
Remove unnecessary nolint directives from test file
The nolint:staticcheck directives are not needed in the test file because it calls NewVolumeHelperImpl within the same package, which doesn't trigger deprecation warnings. Only cross-package calls need the directive. Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
This commit is contained in:
@@ -322,7 +322,6 @@ func TestVolumeHelperImpl_ShouldPerformSnapshot(t *testing.T) {
|
||||
t.Fatalf("failed to build policy with error %v", err)
|
||||
}
|
||||
}
|
||||
//nolint:staticcheck // Testing deprecated function for backwards compatibility
|
||||
vh := NewVolumeHelperImpl(
|
||||
p,
|
||||
tc.snapshotVolumesFlag,
|
||||
@@ -688,7 +687,6 @@ func TestVolumeHelperImpl_ShouldPerformFSBackup(t *testing.T) {
|
||||
t.Fatalf("failed to build policy with error %v", err)
|
||||
}
|
||||
}
|
||||
//nolint:staticcheck // Testing deprecated function for backwards compatibility
|
||||
vh := NewVolumeHelperImpl(
|
||||
p,
|
||||
tc.snapshotVolumesFlag,
|
||||
|
||||
Reference in New Issue
Block a user