mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +08:00
Fix unused null assignment
This commit is contained in:
parent
c9db0181d0
commit
25dbe6b27c
@ -34,9 +34,9 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
{
|
{
|
||||||
string rulesetName = Ruleset?.ShortName;
|
string rulesetName = Ruleset?.ShortName;
|
||||||
|
|
||||||
List<RealmKeyBinding> bindings = null;
|
var bindings = realmFactory.Run(realm => realm.All<RealmKeyBinding>()
|
||||||
|
.Where(b => b.RulesetName == rulesetName && b.Variant == variant)
|
||||||
bindings = realmFactory.Run(realm => realm.All<RealmKeyBinding>().Where(b => b.RulesetName == rulesetName && b.Variant == variant).Detach());
|
.Detach());
|
||||||
|
|
||||||
foreach (var defaultGroup in Defaults.GroupBy(d => d.Action))
|
foreach (var defaultGroup in Defaults.GroupBy(d => d.Action))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user