1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 08:52:55 +08:00

Attempt bumping inspectcode to fix remaining inspection

This commit is contained in:
Dean Herbert 2021-10-15 14:08:25 +09:00
parent 4ed794e434
commit e018a6d6a5
2 changed files with 3 additions and 4 deletions

View File

@ -9,7 +9,7 @@
]
},
"jetbrains.resharper.globaltools": {
"version": "2020.3.2",
"version": "2021.2.2",
"commands": [
"jb"
]

View File

@ -106,9 +106,8 @@ namespace osu.Game.Stores
var rulesets = realm.All<RealmRuleset>();
List<Ruleset> instances = loadedAssemblies.Values
.Select(r => Activator.CreateInstance(r) as Ruleset)
.Where(r => r != null)
.Cast<Ruleset>()
.Select(Activator.CreateInstance)
.OfType<Ruleset>()
.ToList();
// add all legacy rulesets first to ensure they have exclusive choice of primary key.