Skip to content

Commit c8165c7

Browse files
committed
clean up indentation
1 parent 83de9fe commit c8165c7

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

util/worker/worker.cc

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ bool HandleRequest(
7474
auto request_args = request.arguments();
7575
std::string target;
7676
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);
8383
}
8484

8585
// Considering
@@ -135,13 +135,13 @@ int RunAsWorker(
135135
// A CodedInputStream will try to move around the underlying buffer when destroyed.
136136
// If we Flush stdout, that fails. So ensure it goes out of scope before we flush.
137137
{
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+
}
145145
}
146146
output->Flush();
147147
}
@@ -165,7 +165,7 @@ int RunStandalone(
165165
std::ifstream source(param_file);
166166
std::string line;
167167
while (std::getline(source, line)) {
168-
arguments.push_back(line);
168+
arguments.push_back(line);
169169
}
170170

171171
std::string empty;

0 commit comments

Comments
 (0)