1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 20:13:21 +08:00

Remove multiple cases of excess braces

This commit is contained in:
Dean Herbert 2023-02-02 14:28:21 +09:00
parent 209bc3c1ed
commit 3a861fd943

View File

@ -23,21 +23,15 @@ namespace osu.Game.Rulesets.Edit.Checks
int previewTime = context.Beatmap.BeatmapInfo.Metadata.PreviewTime;
if (previewTime == -1)
{
yield return new IssueTemplateHasNoPreviewTime(this).Create();
}
foreach (var diff in diffList)
{
if (diff.Equals(context.Beatmap.BeatmapInfo))
{
continue;
}
if (diff.Metadata.PreviewTime != previewTime)
{
yield return new IssueTemplatePreviewTimeConflict(this).Create(diff.DifficultyName, previewTime, diff.Metadata.PreviewTime);
}
}
}