Skip to content

Commit

Permalink
proto-loader: Avoid generating duplicate method declarations in some …
Browse files Browse the repository at this point in the history
…cases
  • Loading branch information
murgatroid99 committed Apr 9, 2024
1 parent 5674498 commit b292946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/proto-loader/bin/proto-loader-gen-types.ts
Expand Up @@ -555,7 +555,7 @@ function generateServiceClientInterface(formatter: TextFormatter, serviceType: P
formatter.indent();
for (const methodName of Object.keys(serviceType.methods).sort()) {
const method = serviceType.methods[methodName];
for (const name of [methodName, camelCase(methodName)]) {
for (const name of new Set([methodName, camelCase(methodName)])) {
if (CLIENT_RESERVED_METHOD_NAMES.has(name)) {
continue;
}
Expand Down

0 comments on commit b292946

Please sign in to comment.