mirror of https://github.com/ppy/osu
Replace LINQ queries with recommendations
This commit is contained in:
parent
9e279c3ebc
commit
a6b6644c2e
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue