Skip to content

Commit

Permalink
small fix to convert a conditional into a debug assert
Browse files Browse the repository at this point in the history
  • Loading branch information
shazqadeer committed Jan 1, 2020
1 parent 3eabc80 commit d9d8730
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Source/Concurrency/YieldingProcDuplicator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,9 @@ private void ProcessParCallCmd(ParCallCmd parCall, ParCallCmd newParCall)
newCallCmds.Add(pair.Item2);
}
}
if (newCallCmds.Count > 0)
{
newParCall.CallCmds = newCallCmds;
newCmdSeq.Add(newParCall);
}
Debug.Assert(newCallCmds.Count > 0);
newParCall.CallCmds = newCallCmds;
newCmdSeq.Add(newParCall);
}
}

Expand Down

0 comments on commit d9d8730

Please sign in to comment.