fix: fix typo in cmd/protoc-gen-go-http/http.go(is does not -> does not) (#1718)

pull/1724/head
aldslvda 3 years ago committed by GitHub
parent 3642f5d0ba
commit c1ab0cce3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/protoc-gen-go-http/http.go

@ -146,7 +146,7 @@ func buildHTTPRule(g *protogen.GeneratedFile, m *protogen.Method, rule *annotati
md.Body = "." + camelCaseVars(body) md.Body = "." + camelCaseVars(body)
} else { } else {
md.HasBody = false md.HasBody = false
_, _ = fmt.Fprintf(os.Stderr, "\u001B[31mWARN\u001B[m: %s %s is does not declare a body.\n", method, path) _, _ = fmt.Fprintf(os.Stderr, "\u001B[31mWARN\u001B[m: %s %s does not declare a body.\n", method, path)
} }
if responseBody == "*" { if responseBody == "*" {
md.ResponseBody = "" md.ResponseBody = ""

Loading…
Cancel
Save