mirror of
https://github.com/kubernetes-csi/csi-driver-nvmf.git
synced 2025-07-16 23:51:05 +00:00
Merge pull request #24 from testwill/string
chore: use String() instead of fmt.Sprintf
This commit is contained in:
commit
ea5c2acba7
@ -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