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

Fix incorrect fallback logic causing test failure

This commit is contained in:
Dean Herbert 2021-11-24 14:04:55 +09:00
parent ee22c24370
commit 0aedbbe165

View File

@ -51,9 +51,6 @@ namespace osu.Game.Rulesets
/// <exception cref="InvalidOperationException">If <paramref name="ruleset"/> doesn't have a valid <see cref="RulesetInfo.ID"/>.</exception>
public IRulesetConfigManager GetConfigFor(Ruleset ruleset)
{
if (string.IsNullOrEmpty(ruleset.ShortName))
return null;
if (!configCache.TryGetValue(ruleset.RulesetInfo.ShortName, out var config))
// any ruleset request which wasn't initialised on startup should not be stored to realm.
// this should only be used by tests.