1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-14 02:33:03 +02:00

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

This commit is contained in:
aldslvda 2021-12-28 10:53:30 +08:00 committed by GitHub
parent 3642f5d0ba
commit c1ab0cce3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ func buildHTTPRule(g *protogen.GeneratedFile, m *protogen.Method, rule *annotati
md.Body = "." + camelCaseVars(body)
} else {
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 == "*" {
md.ResponseBody = ""