Merge pull request #1790 from neheb/bool

[clang-tidy] simplify boolean expression
This commit is contained in:
Jan Niklas Hasse 2020-12-06 12:15:06 +01:00 committed by GitHub
commit e664814b6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -5,6 +5,7 @@ Checks: '
,readability-non-const-parameter,
,readability-redundant-string-cstr,
,readability-redundant-string-init,
,readability-simplify-boolean-expr,
'
WarningsAsErrors: '
,readability-avoid-const-params-in-decls,
@ -12,4 +13,5 @@ WarningsAsErrors: '
,readability-non-const-parameter,
,readability-redundant-string-cstr,
,readability-redundant-string-init,
,readability-simplify-boolean-expr,
'

View File

@ -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) {