Replace LINQ queries with recommendations

This commit is contained in:
Dean Herbert 2022-02-23 16:22:13 +09:00
parent 9e279c3ebc
commit a6b6644c2e
1 changed files with 2 additions and 2 deletions

View File

@ -96,12 +96,12 @@ public void TestSpinnerGetsNoBonusScore()
}
// we should only be checking the bonus/progress after the spinner has fully completed.
if (!results.OfType<OsuSpinnerJudgementResult>().Any(r => r.TimeCompleted != null))
if (results.OfType<OsuSpinnerJudgementResult>().All(r => r.TimeCompleted == null))
return false;
return
results.Any(r => r.Type == HitResult.SmallBonus)
&& !results.Any(r => r.Type == HitResult.LargeBonus);
&& results.All(r => r.Type != HitResult.LargeBonus);
}
});
}