Skip to content

Commit

Permalink
Add comments two if/else branches
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Sep 29, 2019
1 parent 89b5b40 commit 16655dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/engine/cachingreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ void CachingReader::process() {
DEBUG_ASSERT(m_state != State::Idle);
auto pChunk = update.takeFromWorker();
if (pChunk) {
// Response to a read request
// Result of a read request (with a chunk)
DEBUG_ASSERT(
update.status == CHUNK_READ_SUCCESS ||
update.status == CHUNK_READ_EOF ||
Expand Down Expand Up @@ -252,6 +252,7 @@ void CachingReader::process() {
update.readableFrameIndexRange());
}
} else {
// State update (without a chunk)
DEBUG_ASSERT(!m_mruCachingReaderChunk);
DEBUG_ASSERT(!m_lruCachingReaderChunk);
if (update.status == TRACK_LOADED) {
Expand Down

0 comments on commit 16655dc

Please sign in to comment.