Skip to content

Commit

Permalink
Merge pull request #6304 from davkean/dev/davkean/AvoidRegressionInVe…
Browse files Browse the repository at this point in the history
…rsions

Avoid failing when pushed the same version
  • Loading branch information
davkean authored Jun 25, 2020
2 parents cdbfc50 + d5e086a commit 558dc3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ private void DiscardOutOfDateProjectEvaluations(IComparable version)

private void EnqueueProjectEvaluation(IComparable version, IProjectChangeDiff evaluationDifference)
{
Assumes.False(_projectEvaluations.Count > 0 && version.IsEarlierThanOrEqualTo(_projectEvaluations.Peek().Version), "Attempted to push a project evaluation that regressed in version.");
Assumes.False(_projectEvaluations.Count > 0 && version.IsEarlierThan(_projectEvaluations.Peek().Version), "Attempted to push a project evaluation that regressed in version.");

_projectEvaluations.Enqueue(new VersionedProjectChangeDiff(version, evaluationDifference));
}
Expand Down

0 comments on commit 558dc3f

Please sign in to comment.