1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 11:42:56 +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": { "jetbrains.resharper.globaltools": {
"version": "2020.3.2", "version": "2021.2.2",
"commands": [ "commands": [
"jb" "jb"
] ]

View File

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