Skip to content

Commit

Permalink
correct and simplify pausable_ack_queue RELEASE_ASSERTs
Browse files Browse the repository at this point in the history
Signed-off-by: Fred Douglas <fredlas@google.com>
  • Loading branch information
fredlas committed Oct 1, 2019
1 parent 9ab78de commit 6be011e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/common/config/pausable_ack_queue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const UpdateAck& PausableAckQueue::front() {
return entry;
}
}
RELEASE_ASSERT(!storage_.empty(), "front() on an empty queue is undefined behavior!");
RELEASE_ASSERT(false, "front() on an empty queue is undefined behavior!");
NOT_REACHED_GCOVR_EXCL_LINE;
}

Expand All @@ -37,7 +37,7 @@ void PausableAckQueue::pop() {
return;
}
}
RELEASE_ASSERT(!storage_.empty(), "pop() on an empty queue is undefined behavior!");
RELEASE_ASSERT(false, "pop() on an empty queue is undefined behavior!");
NOT_REACHED_GCOVR_EXCL_LINE;
}

Expand Down

0 comments on commit 6be011e

Please sign in to comment.