mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 19:22:54 +08:00
Do not use ?? true
pattern
Universally disliked. `!= false` is preferred.
This commit is contained in:
parent
9758e5f840
commit
76f509a1db
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user