[clangd] Fix the `-Wtype-limits` warning, NFC

The assertion is always true, and triggers a compiler warning, so remove it.

llvm-svn: 351809
This commit is contained in:
Haojian Wu 2019-01-22 12:21:25 +00:00
parent 3d80264f6d
commit 72ef4510b6
1 changed files with 0 additions and 1 deletions

View File

@ -102,7 +102,6 @@ void MergedIndex::refs(const RefsRequest &Req,
Callback(O);
--Remaining;
});
assert(Remaining >= 0);
if (Remaining == 0)
return;
// We return less than Req.Limit if static index returns more refs for dirty