1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 04:13:11 +08:00

Simplify lambda.

This commit is contained in:
smoogipooo 2017-04-06 11:51:04 +09:00
parent 5beab4c43d
commit acfcd30cc6

View File

@ -165,13 +165,9 @@ namespace osu.Game.Modes.Objects.Drawables
return ret; return ret;
} }
protected virtual void PlaySamples() protected void PlaySamples()
{ {
samples.ForEach(s => samples.ForEach(s => s?.Play());
{
s?.Play();
});
} }
private List<DrawableHitObject<TObject, TJudgement>> nestedHitObjects; private List<DrawableHitObject<TObject, TJudgement>> nestedHitObjects;