build: address gocritic warnings

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos 2023-06-02 11:51:15 +02:00 committed by mergify[bot]
parent 9201da0502
commit dee6be6832

View File

@ -17,8 +17,6 @@ limitations under the License.
package csicommon package csicommon
import ( import (
"fmt"
"github.com/ceph/ceph-csi/internal/util/log" "github.com/ceph/ceph-csi/internal/util/log"
"github.com/container-storage-interface/spec/lib/go/csi" "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 // AddControllerServiceCapabilities stores the controller capabilities