Skip to content

Commit 027f805

Browse files
committed
lint failure fix
1 parent a8e45cc commit 027f805

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pkg/cloud/fake/fake.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ func (f *fakeConnector) ListSnapshots(_ context.Context, volumeID, snapshotID st
209209
if snap, ok := f.snapshotsByID[snapshotID]; ok {
210210
result = append(result, snap)
211211
}
212+
212213
return result, nil
213214
}
214215
if volumeID != "" {
@@ -224,6 +225,7 @@ func (f *fakeConnector) ListSnapshots(_ context.Context, volumeID, snapshotID st
224225
result = append(result, snap)
225226
}
226227
}
228+
227229
return result, nil
228230
}
229231
result := make([]*cloud.Snapshot, 0, len(f.snapshotsByID))

pkg/driver/controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,14 +737,14 @@ func (cs *controllerServer) ControllerGetCapabilities(ctx context.Context, req *
737737
},
738738
},
739739
},
740-
&csi.ControllerServiceCapability{
740+
{
741741
Type: &csi.ControllerServiceCapability_Rpc{
742742
Rpc: &csi.ControllerServiceCapability_RPC{
743743
Type: csi.ControllerServiceCapability_RPC_CREATE_DELETE_SNAPSHOT,
744744
},
745745
},
746746
},
747-
&csi.ControllerServiceCapability{
747+
{
748748
Type: &csi.ControllerServiceCapability_Rpc{
749749
Rpc: &csi.ControllerServiceCapability_RPC{
750750
Type: csi.ControllerServiceCapability_RPC_LIST_SNAPSHOTS,

0 commit comments

Comments
 (0)