Skip to content

Commit 18e457d

Browse files
committed
Fix formatting
1 parent 7221f81 commit 18e457d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/grpc-tools/src/node_generator.cc

+3-5
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ grpc::string NodeObjectPath(const Descriptor* descriptor) {
120120
}
121121

122122
// Prints out the message serializer and deserializer functions
123-
void PrintMessageTransformer(const Descriptor* descriptor,
124-
Printer* out,
123+
void PrintMessageTransformer(const Descriptor* descriptor, Printer* out,
125124
const Parameters& params) {
126125
map<grpc::string, grpc::string> template_vars;
127126
grpc::string full_name = descriptor->full_name();
@@ -135,7 +134,7 @@ void PrintMessageTransformer(const Descriptor* descriptor,
135134
out->Print(template_vars, "if (!(arg instanceof $node_name$)) {\n");
136135
out->Indent();
137136
out->Print(template_vars,
138-
"throw new Error('Expected argument of type $name$');\n");
137+
"throw new Error('Expected argument of type $name$');\n");
139138
out->Outdent();
140139
out->Print("}\n");
141140
}
@@ -236,8 +235,7 @@ void PrintImports(const FileDescriptor* file, Printer* out,
236235
out->Print("\n");
237236
}
238237

239-
void PrintTransformers(const FileDescriptor* file,
240-
Printer* out,
238+
void PrintTransformers(const FileDescriptor* file, Printer* out,
241239
const Parameters& params) {
242240
map<grpc::string, const Descriptor*> messages = GetAllMessages(file);
243241
for (std::map<grpc::string, const Descriptor*>::iterator it =

0 commit comments

Comments
 (0)