Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lionello committed Jan 9, 2025
1 parent 7221f81 commit 18e457d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/grpc-tools/src/node_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ grpc::string NodeObjectPath(const Descriptor* descriptor) {
}

// Prints out the message serializer and deserializer functions
void PrintMessageTransformer(const Descriptor* descriptor,
Printer* out,
void PrintMessageTransformer(const Descriptor* descriptor, Printer* out,
const Parameters& params) {
map<grpc::string, grpc::string> template_vars;
grpc::string full_name = descriptor->full_name();
Expand All @@ -135,7 +134,7 @@ void PrintMessageTransformer(const Descriptor* descriptor,
out->Print(template_vars, "if (!(arg instanceof $node_name$)) {\n");
out->Indent();
out->Print(template_vars,
"throw new Error('Expected argument of type $name$');\n");
"throw new Error('Expected argument of type $name$');\n");
out->Outdent();
out->Print("}\n");
}
Expand Down Expand Up @@ -236,8 +235,7 @@ void PrintImports(const FileDescriptor* file, Printer* out,
out->Print("\n");
}

void PrintTransformers(const FileDescriptor* file,
Printer* out,
void PrintTransformers(const FileDescriptor* file, Printer* out,
const Parameters& params) {
map<grpc::string, const Descriptor*> messages = GetAllMessages(file);
for (std::map<grpc::string, const Descriptor*>::iterator it =
Expand Down

0 comments on commit 18e457d

Please sign in to comment.