Skip to content

Commit

Permalink
fix go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterp committed Jan 24, 2025
1 parent 5179c38 commit cf20d21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions driver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -780,11 +780,6 @@ func (d *controllerService) ControllerGetVolume(ctx context.Context, req *csi.Co
}, nil
}

func (d *controllerService) ControllerModifyVolume(context.Context, *csi.ControllerModifyVolumeRequest) (*csi.ControllerModifyVolumeResponse, error) {

return nil, nil
}

func newClientZone(ctx context.Context, c *v3.Client, z v3.ZoneName) (*v3.Client, error) {
endpoint, err := c.GetZoneAPIEndpoint(ctx, z)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions driver/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ func validateVolumeCapability(volumeCapability *csi.VolumeCapability) error {
if volumeCapability == nil {
return fmt.Errorf("volumeCapability is nil")
}
for _, accessMode := range supportedAccessModes {
if accessMode.Mode == volumeCapability.GetAccessMode().GetMode() {
for i := range supportedAccessModes {
if supportedAccessModes[i].Mode == volumeCapability.GetAccessMode().GetMode() {
return nil
}
}
Expand Down

0 comments on commit cf20d21

Please sign in to comment.