Fix run payload checking logic

This commit is contained in:
John
2021-07-05 15:28:20 +01:00
parent 2003d81aba
commit f86708a812
@@ -15,7 +15,7 @@ namespace TestImpact
{
AZStd::optional<TestRun> ReleaseTestRun(AZStd::optional<AZStd::pair<AZStd::optional<TestRun>, TestCoverage>>& testRunAndCoverage)
{
if (testRunAndCoverage.has_value() && testRunAndCoverage.has_value())
if (testRunAndCoverage.has_value() && testRunAndCoverage->first.has_value())
{
return AZStd::move(testRunAndCoverage.value().first);
}