1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:07:52 +08:00

Do not use ?? true pattern

Universally disliked. `!= false` is preferred.
This commit is contained in:
Bartłomiej Dach 2023-06-18 14:19:38 +02:00
parent 9758e5f840
commit 76f509a1db
No known key found for this signature in database

View File

@ -334,7 +334,7 @@ namespace osu.Game.Tests.Visual.UserInterface
private void setFilter(Func<Mod, bool>? filter)
{
foreach (var modState in this.ChildrenOfType<ModColumn>().Single().AvailableMods)
modState.ValidForSelection.Value = filter?.Invoke(modState.Mod) ?? true;
modState.ValidForSelection.Value = filter?.Invoke(modState.Mod) != false;
}
private partial class TestModColumn : ModColumn