Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkyle committed Feb 24, 2021
1 parent afbb3ba commit 6adf034
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bin/pytorch_inference/CCommandParser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ bool CCommandParser::ioLoop(const TRequestHandlerFunc& requestHandler) const {
debug(doc);
CCommandParser::SRequest request = jsonToRequest(doc);
if (requestHandler(request) == false) {
LOG_ERROR(<< "Request handler forced exit");
return false;
LOG_ERROR(<< "Request handler forced exit");
return false;
}
}

Expand Down Expand Up @@ -94,8 +94,7 @@ bool CCommandParser::validateJson(const rapidjson::Document& doc) const {
while (doc.HasMember(varArgName)) {
const rapidjson::Value& value = doc[varArgName];
if (value.IsArray() == false) {
LOG_ERROR(<< "Invalid command: argument [" << varArgName
<< "] is not an array");
LOG_ERROR(<< "Invalid command: argument [" << varArgName << "] is not an array");
return false;
}

Expand Down

0 comments on commit 6adf034

Please sign in to comment.