1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +08:00

Replace LINQ queries with recommendations

This commit is contained in:
Dean Herbert 2022-02-23 16:22:13 +09:00
parent 9e279c3ebc
commit a6b6644c2e

View File

@ -96,12 +96,12 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
}
// 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);
}
});
}