diff options
author | Jan Niklas Hasse <jhasse@bixense.com> | 2020-12-06 11:15:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-06 11:15:06 (GMT) |
commit | e664814b6aa5f897accf88f6ccd06ea323a3dc7c (patch) | |
tree | 61b32493a028d1a4f266e6a5424fc0de24fba860 /src | |
parent | deb542192b9861c3ce249a2937ef8e62735e7270 (diff) | |
parent | 7c36b8871ac0cd976461b19b8d302ba58121fbfd (diff) | |
download | Ninja-e664814b6aa5f897accf88f6ccd06ea323a3dc7c.zip Ninja-e664814b6aa5f897accf88f6ccd06ea323a3dc7c.tar.gz Ninja-e664814b6aa5f897accf88f6ccd06ea323a3dc7c.tar.bz2 |
Merge pull request #1790 from neheb/bool
[clang-tidy] simplify boolean expression
Diffstat (limited to 'src')
-rw-r--r-- | src/manifest_parser.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/manifest_parser.cc b/src/manifest_parser.cc index 860a8fc..54ad3f4 100644 --- a/src/manifest_parser.cc +++ b/src/manifest_parser.cc @@ -202,10 +202,7 @@ bool ManifestParser::ParseDefault(string* err) { return false; } while (!eval.empty()); - if (!ExpectToken(Lexer::NEWLINE, err)) - return false; - - return true; + return ExpectToken(Lexer::NEWLINE, err); } bool ManifestParser::ParseEdge(string* err) { |