diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 5637eed..f077080 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -1376,14 +1376,7 @@ bool checkRangeRead(Node *n, std::span begin, break; } - if (!checkRangeLeftSide.ok) { - return false; - } - if (!checkRangeRightSide.ok) { - return false; - } - - return true; + return checkRangeLeftSide.ok & checkRangeRightSide.ok; } // Returns a pointer to the newly inserted node. caller is reponsible for