summaryrefslogtreecommitdiffstats
path: root/src/LineBlockTracer.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/LineBlockTracer.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/LineBlockTracer.cpp b/src/LineBlockTracer.cpp
index 6160f8485..49eba9ac8 100644
--- a/src/LineBlockTracer.cpp
+++ b/src/LineBlockTracer.cpp
@@ -287,12 +287,8 @@ bool cLineBlockTracer::ChunkCallback(cChunk * a_Chunk)
// This is the actual line tracing loop.
for (;;)
{
- // Report the current block through the callbacks:
- if (a_Chunk == nullptr)
- {
- m_Callbacks->OnNoChunk();
- return false;
- }
+ // Our caller (DoWithChunk callback) should never give nothing:
+ ASSERT(a_Chunk != nullptr);
// Move to next block
if (!MoveToNextBlock())
@@ -324,6 +320,7 @@ bool cLineBlockTracer::ChunkCallback(cChunk * a_Chunk)
return false;
}
+ // Report the current block through the callbacks:
if (a_Chunk->IsValid())
{
BLOCKTYPE BlockType;