@@ -74,12 +74,12 @@ bool HandleRequest(
74
74
auto request_args = request.arguments ();
75
75
std::string target;
76
76
for (int i = 0 ; i < request.arguments_size (); i++) {
77
- auto argument = request.arguments (i);
78
- // Starts with
79
- if (argument.rfind (" --target=" , 0 ) != std::string::npos) {
80
- target = argument.substr (9 ) + ' /' ;
81
- }
82
- arguments.push_back (argument);
77
+ auto argument = request.arguments (i);
78
+ // Starts with
79
+ if (argument.rfind (" --target=" , 0 ) != std::string::npos) {
80
+ target = argument.substr (9 ) + ' /' ;
81
+ }
82
+ arguments.push_back (argument);
83
83
}
84
84
85
85
// Considering
@@ -135,13 +135,13 @@ int RunAsWorker(
135
135
// A CodedInputStream will try to move around the underlying buffer when destroyed.
136
136
// If we Flush stdout, that fails. So ensure it goes out of scope before we flush.
137
137
{
138
- CodedOutputStream coded_out (output.get ());
139
- coded_out.WriteVarint32 (response.ByteSize ());
140
- response.SerializeWithCachedSizes (&coded_out);
141
- if (coded_out.HadError ()) {
142
- std::cerr << " Error serializing response\n " ;
143
- return 1 ;
144
- }
138
+ CodedOutputStream coded_out (output.get ());
139
+ coded_out.WriteVarint32 (response.ByteSize ());
140
+ response.SerializeWithCachedSizes (&coded_out);
141
+ if (coded_out.HadError ()) {
142
+ std::cerr << " Error serializing response\n " ;
143
+ return 1 ;
144
+ }
145
145
}
146
146
output->Flush ();
147
147
}
@@ -165,7 +165,7 @@ int RunStandalone(
165
165
std::ifstream source (param_file);
166
166
std::string line;
167
167
while (std::getline (source, line)) {
168
- arguments.push_back (line);
168
+ arguments.push_back (line);
169
169
}
170
170
171
171
std::string empty;
0 commit comments