From dee6be6832690188102da6516ba3b5cd624a103c Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Fri, 2 Jun 2023 11:51:15 +0200 Subject: [PATCH] build: address `gocritic` warnings Signed-off-by: Niels de Vos --- internal/csi-common/driver.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/csi-common/driver.go b/internal/csi-common/driver.go index 9c6139b34..aeda36051 100644 --- a/internal/csi-common/driver.go +++ b/internal/csi-common/driver.go @@ -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