1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:17:26 +08:00

style: convert to using declaration for less nesting

This commit is contained in:
tsrk 2023-09-01 20:54:02 +02:00
parent 5ecd5142d8
commit 5f00d3e2a4
No known key found for this signature in database
GPG Key ID: EBD46BB3049B56D6

View File

@ -52,8 +52,8 @@ namespace osu.Game.Rulesets.Edit.Checks
if (!isHitSound(file.Filename))
continue;
using (Waveform waveform = new Waveform(stream))
{
using Waveform waveform = new Waveform(stream);
var points = waveform.GetPoints();
// Skip muted samples
@ -104,7 +104,6 @@ namespace osu.Game.Rulesets.Edit.Checks
}
}
}
}
private bool isHitSound(string filename)
{