Merge pull request #11863 from gyuho/gofmt

*: run "gofmt -s" on genproto complete
release-3.5
Gyuho Lee 2020-05-11 18:08:22 -07:00 committed by GitHub
commit 5f07d46f70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -104,7 +104,9 @@ var RangeRequest_SortTarget_value = map[string]int32{
func (x RangeRequest_SortTarget) String() string {
return proto.EnumName(RangeRequest_SortTarget_name, int32(x))
}
func (RangeRequest_SortTarget) EnumDescriptor() ([]byte, []int) { return fileDescriptorRpc, []int{1, 1} }
func (RangeRequest_SortTarget) EnumDescriptor() ([]byte, []int) {
return fileDescriptorRpc, []int{1, 1}
}
type Compare_CompareResult int32

View File

@ -84,6 +84,7 @@ for dir in ${DIRS}; do
# shellcheck disable=SC1117
sed -i.bak -E "s/go.etcd.io\/etcd\//go.etcd.io\/etcd\/v3\//" ./*.pb.go
rm -f ./*.bak
gofmt -s -w ./*.pb.go
goimports -w ./*.pb.go
popd
done