[clang-tools-extra] Remove redundant control flow statements (NFC) (#140846)
This commit is contained in:
@@ -70,7 +70,6 @@ static void cleanInitialValue(DiagnosticBuilder &Diag,
|
||||
return;
|
||||
Diag << FixItHint::CreateRemoval(EqualLoc)
|
||||
<< FixItHint::CreateRemoval(InitExprRange);
|
||||
return;
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -49,7 +49,6 @@ TEST(ProjectAware, Test) {
|
||||
C.Index.External.Location = "test";
|
||||
WithContextValue With(Config::Key, std::move(C));
|
||||
EXPECT_THAT(match(*Idx, Req), ElementsAre("1"));
|
||||
return;
|
||||
}
|
||||
|
||||
TEST(ProjectAware, CreatedOnce) {
|
||||
@@ -80,7 +79,6 @@ TEST(ProjectAware, CreatedOnce) {
|
||||
match(*Idx, Req);
|
||||
// It is cached afterwards.
|
||||
EXPECT_EQ(InvocationCount, 1U);
|
||||
return;
|
||||
}
|
||||
} // namespace clangd
|
||||
} // namespace clang
|
||||
|
||||
Reference in New Issue
Block a user