mirror of
https://github.com/kubernetes-csi/csi-driver-nvmf.git
synced 2025-06-27 06:56:51 +00:00
chore: use String() instead of fmt.Sprintf
This commit is contained in:
parent
41bbaf9cfb
commit
7129ec591b
@ -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())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user