Update golangci-lint version to v1.21.0

Signed-off-by: Woohyung Han <techhanx@gmail.com>
This commit is contained in:
Woohyung Han
2019-12-12 12:22:55 +09:00
committed by mergify[bot]
parent 118f34525e
commit 8a16f740d6
16 changed files with 8 additions and 26 deletions

View File

@ -295,7 +295,6 @@ func (cs *ControllerServer) ValidateVolumeCapabilities(
// ExpandVolume expand CephFS Volumes on demand based on resizer request
func (cs *ControllerServer) ControllerExpandVolume(ctx context.Context, req *csi.ControllerExpandVolumeRequest) (*csi.ControllerExpandVolumeResponse, error) {
if err := cs.validateExpandVolumeRequest(req); err != nil {
klog.Errorf("ControllerExpandVolumeRequest validation failed: %v", err)
return nil, err
@ -335,5 +334,4 @@ func (cs *ControllerServer) ControllerExpandVolume(ctx context.Context, req *csi
CapacityBytes: RoundOffSize,
NodeExpansionRequired: false,
}, nil
}

View File

@ -91,7 +91,6 @@ func NewNodeServer(d *csicommon.CSIDriver, t string) *NodeServer {
// Run start a non-blocking grpc controller,node and identityserver for
// ceph CSI driver which can serve multiple parallel requests
func (fs *Driver) Run(conf *util.Config, cachePersister util.CachePersister) {
// Configuration
PluginFolder = conf.PluginPath

View File

@ -163,7 +163,6 @@ func (*NodeServer) mount(ctx context.Context, volOptions *volumeOptions, req *cs
// NodePublishVolume mounts the volume mounted to the staging path to the target
// path
func (ns *NodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error) {
mountOptions := []string{"bind"}
if err := util.ValidateNodePublishVolumeRequest(req); err != nil {
return nil, err