Remove unnecessary coercions

Comparisons to null of nullable numbers are always false.
This commit is contained in:
Bartłomiej Dach
2020-02-10 20:37:34 +01:00
parent e2950d7027
commit 811553cd60
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ namespace osu.Game.Overlays.BeatmapSet
private void updateDisplay()
{
Ratings.Metrics = BeatmapSet?.Metrics;
ratingBox.Alpha = (BeatmapSet?.OnlineInfo?.Status ?? 0) > 0 ? 1 : 0;
ratingBox.Alpha = BeatmapSet?.OnlineInfo?.Status > 0 ? 1 : 0;
}
public Details()