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:
parent
4ed794e434
commit
e018a6d6a5
@ -9,7 +9,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"jetbrains.resharper.globaltools": {
|
"jetbrains.resharper.globaltools": {
|
||||||
"version": "2020.3.2",
|
"version": "2021.2.2",
|
||||||
"commands": [
|
"commands": [
|
||||||
"jb"
|
"jb"
|
||||||
]
|
]
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user