*: run "gofmt -s" on genproto complete

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
This commit is contained in:
Gyuho Lee 2020-05-09 23:14:32 -07:00
parent b95f135e10
commit d93c36bbb9
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