Skip to content

Commit 4b75450

Browse files
committed
fix warnings
1 parent b7eddd9 commit 4b75450

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

protosanitizer/protosanitizer_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ func TestStripSecrets(t *testing.T) {
3434
createVolume := &csi.CreateVolumeRequest{
3535
AccessibilityRequirements: &csi.TopologyRequirement{
3636
Requisite: []*csi.Topology{
37-
&csi.Topology{
37+
{
3838
Segments: map[string]string{
3939
"foo": "bar",
4040
"x": "y",
4141
},
4242
},
43-
&csi.Topology{
43+
{
4444
Segments: map[string]string{
4545
"a": "b",
4646
},
@@ -49,7 +49,7 @@ func TestStripSecrets(t *testing.T) {
4949
},
5050
Name: "foo",
5151
VolumeCapabilities: []*csi.VolumeCapability{
52-
&csi.VolumeCapability{
52+
{
5353
AccessType: &csi.VolumeCapability_Mount{
5454
Mount: &csi.VolumeCapability_MountVolume{
5555
FsType: "ext4",
@@ -72,8 +72,8 @@ func TestStripSecrets(t *testing.T) {
7272
RequiredBytes: 1024,
7373
},
7474
MaybeSecretMap: map[int64]*csitest.VolumeCapability{
75-
1: &csitest.VolumeCapability{ArraySecret: "aaa"},
76-
2: &csitest.VolumeCapability{ArraySecret: "bbb"},
75+
1: {ArraySecret: "aaa"},
76+
2: {ArraySecret: "bbb"},
7777
},
7878
Name: "foo",
7979
NewSecretInt: 42,
@@ -82,15 +82,15 @@ func TestStripSecrets(t *testing.T) {
8282
"secret-xyz": "987",
8383
},
8484
VolumeCapabilities: []*csitest.VolumeCapability{
85-
&csitest.VolumeCapability{
85+
{
8686
AccessType: &csitest.VolumeCapability_Mount{
8787
Mount: &csitest.VolumeCapability_MountVolume{
8888
FsType: "ext4",
8989
},
9090
},
9191
ArraySecret: "knock knock",
9292
},
93-
&csitest.VolumeCapability{
93+
{
9494
ArraySecret: "Who's there?",
9595
},
9696
},
@@ -124,7 +124,7 @@ func TestStripSecrets(t *testing.T) {
124124
LimitBytes: int64(1024),
125125
},
126126
VolumeCapabilities: []*csi.VolumeCapability{
127-
&csi.VolumeCapability{
127+
{
128128
AccessType: &csi.VolumeCapability_Mount{
129129
Mount: &csi.VolumeCapability_MountVolume{
130130
FsType: "ext4",

0 commit comments

Comments
 (0)