clang-tidy: don't use else after return

Found with readability-else-after-return

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-06-16 18:50:15 -07:00
committed by Urs Fleisch
parent 76f00c5a8a
commit a8884c2b17
19 changed files with 77 additions and 108 deletions

View File

@ -41,8 +41,7 @@ namespace
{
if(page->header()->lastPacketCompleted())
return page->firstPacketIndex() + page->packetCount();
else
return page->firstPacketIndex() + page->packetCount() - 1;
return page->firstPacketIndex() + page->packetCount() - 1;
}
} // namespace