Skip to content

Commit

Permalink
cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
cdunn2001 committed Jan 23, 2015
1 parent 942e2c9 commit 05810a7
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/jsontestrunner/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,21 +257,20 @@ int main(int argc, const char* argv[]) {
Json::Value root;
exitCode = parseAndSaveValueTree(
input, actualPath, "input", root, features, parseOnly);
if (exitCode != 0 || parseOnly) {
if (exitCode || parseOnly) {
return exitCode;
}
std::string rewrite;
exitCode = rewriteValueTree(rewritePath, root, rewrite);
if (exitCode =! 0) {
if (exitCode) {
return exitCode;
}
Json::Value rewriteRoot;
exitCode = parseAndSaveValueTree(rewrite,
rewriteActualPath,
"rewrite",
rewriteRoot,
features,
parseOnly);
exitCode = parseAndSaveValueTree(
rewrite, rewriteActualPath, "rewrite", rewriteRoot, features, parseOnly);
if (exitCode) {
return exitCode;
}
}
catch (const std::exception& e) {
printf("Unhandled exception:\n%s\n", e.what());
Expand Down

0 comments on commit 05810a7

Please sign in to comment.