mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 10:53:34 +00:00
util: address golangci-lint for csi-common
addressing golangci-lint issues in the csi-common related code. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
2465310543
commit
a85b4a9305
@ -70,8 +70,6 @@ func NewCSIDriver(name, v, nodeID string) *CSIDriver {
|
||||
|
||||
// ValidateControllerServiceRequest validates the controller
|
||||
// plugin capabilities.
|
||||
//
|
||||
//nolint:interfacer // c can be of type fmt.Stringer, but that does not make the API clearer
|
||||
func (d *CSIDriver) ValidateControllerServiceRequest(c csi.ControllerServiceCapability_RPC_Type) error {
|
||||
if c == csi.ControllerServiceCapability_RPC_UNKNOWN {
|
||||
return nil
|
||||
@ -133,8 +131,6 @@ func (d *CSIDriver) AddGroupControllerServiceCapabilities(cl []csi.GroupControll
|
||||
|
||||
// ValidateGroupControllerServiceRequest validates the group controller
|
||||
// plugin capabilities.
|
||||
//
|
||||
//nolint:interfacer // c can be of type fmt.Stringer, but that does not make the API clearer
|
||||
func (d *CSIDriver) ValidateGroupControllerServiceRequest(c csi.GroupControllerServiceCapability_RPC_Type) error {
|
||||
if c == csi.GroupControllerServiceCapability_RPC_UNKNOWN {
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user