Skip to content

Commit aa829ed

Browse files
fix: add braces and line break for foreach/if in DrawableSlider (InspectCode warning)
Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/3392b526-2e9e-4809-aa6c-cb6622e9295d Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
1 parent 31a95b0 commit aa829ed

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

osu.Game.Rulesets.Osu/Objects/Drawables/DrawableSlider.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,10 @@ protected override void CheckForResult(bool userTriggered, double timeOffset)
303303
int hitTicks = 0;
304304

305305
foreach (var h in hitObject.NestedHitObjects)
306-
if (h.IsHit) hitTicks++;
306+
{
307+
if (h.IsHit)
308+
hitTicks++;
309+
}
307310

308311
if (hitTicks == totalTicks)
309312
r.Type = HitResult.Great;

0 commit comments

Comments
 (0)