remove stringer and go generate (#1715)
This commit is contained in:
@ -23,8 +23,6 @@ package codes // import "google.golang.org/grpc/codes"
|
|||||||
// A Code is an unsigned 32-bit error code as defined in the gRPC spec.
|
// A Code is an unsigned 32-bit error code as defined in the gRPC spec.
|
||||||
type Code uint32
|
type Code uint32
|
||||||
|
|
||||||
//go:generate stringer -type=Code
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// OK is returned on success.
|
// OK is returned on success.
|
||||||
OK Code = 0
|
OK Code = 0
|
||||||
|
|||||||
3
vet.sh
3
vet.sh
@ -23,8 +23,7 @@ if [ "$1" = "-install" ]; then
|
|||||||
golang.org/x/tools/cmd/goimports \
|
golang.org/x/tools/cmd/goimports \
|
||||||
honnef.co/go/tools/cmd/staticcheck \
|
honnef.co/go/tools/cmd/staticcheck \
|
||||||
github.com/client9/misspell/cmd/misspell \
|
github.com/client9/misspell/cmd/misspell \
|
||||||
github.com/golang/protobuf/protoc-gen-go \
|
github.com/golang/protobuf/protoc-gen-go
|
||||||
golang.org/x/tools/cmd/stringer
|
|
||||||
if [[ "$check_proto" = "true" ]]; then
|
if [[ "$check_proto" = "true" ]]; then
|
||||||
if [[ "$TRAVIS" = "true" ]]; then
|
if [[ "$TRAVIS" = "true" ]]; then
|
||||||
PROTOBUF_VERSION=3.3.0
|
PROTOBUF_VERSION=3.3.0
|
||||||
|
|||||||
Reference in New Issue
Block a user