chore: format code

pull/192/head
meng.li 6 years ago
parent 9f9d958d6d
commit 645c10dc35
  1. 4
      tool/protobuf/protoc-gen-bswagger/generator.go

@ -74,8 +74,8 @@ func (t *swaggerGen) generateSwagger(file *descriptor.FileDescriptorProto) *plug
}
apiInfo := t.GetHttpInfoCached(file, svc, meth)
pathItem := swaggerPathItemObject{}
if originPathItem,ok := swaggerObj.Paths[apiInfo.Path];ok{
pathItem= originPathItem
if originPathItem, ok := swaggerObj.Paths[apiInfo.Path]; ok {
pathItem = originPathItem
}
op := t.getOperationByHTTPMethod(apiInfo.HttpMethod, &pathItem)
op.Summary = apiInfo.Title

Loading…
Cancel
Save