Skip to content

Commit

Permalink
Fix for ineffectual assert (#18652)
Browse files Browse the repository at this point in the history
* Ensure assert actually gets hit

* fixup! Fix whitespace
  • Loading branch information
gharveymn authored and pull[bot] committed Jul 11, 2023
1 parent 2d17ae8 commit 2272264
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/InteractionModelEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -792,15 +792,15 @@ void InteractionModelEngine::RemoveReadClient(ReadClient * apReadClient)

while (pCurListItem != apReadClient)
{
//
// Item must exist in this tracker list. If not, there's a bug somewhere.
//
VerifyOrDie(pCurListItem != nullptr);

pPrevListItem = pCurListItem;
pCurListItem = pCurListItem->GetNextClient();
}

//
// Item must exist in this tracker list. If not, there's a bug somewhere.
//
VerifyOrDie(pCurListItem != nullptr);

if (pPrevListItem)
{
pPrevListItem->SetNextClient(apReadClient->GetNextClient());
Expand Down

0 comments on commit 2272264

Please sign in to comment.