Skip to content

Commit

Permalink
Remove unnecessary braces
Browse files Browse the repository at this point in the history
  • Loading branch information
MBmasher committed Nov 17, 2021
1 parent 8e85715 commit 92cf447
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions osu.Game.Rulesets.Osu/Difficulty/Skills/Flashlight.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,10 @@ private double strainValueOf(DifficultyHitObject current)
}

private double opacity(double ms, double preemptTime, bool hidden) {
if (hidden) {
if (hidden)
return Math.Clamp(Math.Min((1 - ms / preemptTime) * 2.5, (ms / preemptTime) * (1.0 / 0.3)), 0.0, 1.0);
}
else
{
return Math.Clamp((1.0 - ms / preemptTime) * 1.5, 0.0, 1.0);
}
}

private double strainDecay(double ms) => Math.Pow(strainDecayBase, ms / 1000);
Expand Down

0 comments on commit 92cf447

Please sign in to comment.