[clang-tidy] fix small false positive

else if has to be on the same line it seems.

Found with readability-misleading-indentation

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-06-02 18:28:20 -07:00
parent 8948ec2de6
commit 0ab46c5918
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B

View File

@ -1067,8 +1067,7 @@ bool Builder::ExtractDeps(CommandRunner::Result* result,
// complexity in IncludesNormalize::Relativize.
deps_nodes->push_back(state_->GetNode(*i, ~0u));
}
} else
if (deps_type == "gcc") {
} else if (deps_type == "gcc") {
string depfile = result->edge->GetUnescapedDepfile();
if (depfile.empty()) {
*err = string("edge with deps=gcc but no depfile makes no sense");