Cosmetic.

This commit is contained in:
Jeroen Vermeulen 2015-07-17 19:17:38 +07:00
parent 1ffcd17ce5
commit 342598af0c

View File

@ -28,20 +28,10 @@ TO_STRING_BODY(WordsBitmap);
bool WordsBitmap::IsAdjacent(size_t startPos, size_t endPos) const
{
if (GetNumWordsCovered() == 0) {
return true;
}
size_t first = GetFirstGapPos();
size_t last = GetLastGapPos();
if (startPos == last || endPos == first) {
return true;
}
return false;
return
GetNumWordsCovered() == 0 ||
startPos == GetFirstGapPos() ||
endPos == GetLastGapPos();
}
}