mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
build: address gocritic
warnings
Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
parent
9201da0502
commit
dee6be6832
@ -17,8 +17,6 @@ limitations under the License.
|
||||
package csicommon
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/ceph/ceph-csi/internal/util/log"
|
||||
|
||||
"github.com/container-storage-interface/spec/lib/go/csi"
|
||||
@ -82,7 +80,7 @@ func (d *CSIDriver) ValidateControllerServiceRequest(c csi.ControllerServiceCapa
|
||||
}
|
||||
}
|
||||
|
||||
return status.Error(codes.InvalidArgument, fmt.Sprintf("%s", c))
|
||||
return status.Error(codes.InvalidArgument, c.String())
|
||||
}
|
||||
|
||||
// AddControllerServiceCapabilities stores the controller capabilities
|
||||
|
Loading…
Reference in New Issue
Block a user