[clangd] Fix a "-Wdangling-else" compiler warning in the test.

llvm-svn: 339416
This commit is contained in:
Haojian Wu 2018-08-10 08:34:16 +00:00
parent 25efa0fad3
commit 1793bc9f78
1 changed files with 2 additions and 1 deletions

View File

@ -1393,8 +1393,9 @@ TEST(CompletionTest, FixItForArrowToDot) {
ReplacementEdit.newText = ".";
for (const auto &C : Results.Completions) {
EXPECT_TRUE(C.FixIts.size() == 1u || C.Name == "AuxFunction");
if (!C.FixIts.empty())
if (!C.FixIts.empty()) {
EXPECT_THAT(C.FixIts, ElementsAre(ReplacementEdit));
}
}
}