Merge pull request #24 from testwill/string

chore: use String() instead of fmt.Sprintf
This commit is contained in:
Kubernetes Prow Robot 2023-06-27 01:12:31 -07:00 committed by GitHub
commit ea5c2acba7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,8 +17,6 @@ limitations under the License.
package nvmf
import (
"fmt"
"github.com/container-storage-interface/spec/lib/go/csi"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
@ -115,5 +113,5 @@ func (d *driver) ValidateControllerServiceRequest(c csi.ControllerServiceCapabil
return nil
}
}
return status.Error(codes.InvalidArgument, fmt.Sprintf("%s", c))
return status.Error(codes.InvalidArgument, c.String())
}