mirror of
https://github.com/ppy/osu
synced 2024-12-23 23:33:36 +00:00
Avoid unnecessary casts
This commit is contained in:
parent
4ee8224f8b
commit
879b1ab046
@ -10,6 +10,7 @@ using osu.Framework.Utils;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Rulesets;
|
||||
using osu.Game.Tests.Visual;
|
||||
using osu.Game.Tournament.IO;
|
||||
using osu.Game.Tournament.IPC;
|
||||
using osu.Game.Tournament.Models;
|
||||
using osu.Game.Users;
|
||||
@ -28,7 +29,7 @@ namespace osu.Game.Tournament.Tests
|
||||
protected MatchIPCInfo IPCInfo { get; private set; } = new MatchIPCInfo();
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(Storage storage)
|
||||
private void load(TournamentStorage storage)
|
||||
{
|
||||
Ladder.Ruleset.Value ??= rulesetStore.AvailableRulesets.First();
|
||||
|
||||
|
@ -29,10 +29,9 @@ namespace osu.Game.Tournament.Models
|
||||
|
||||
private readonly Storage configStorage;
|
||||
|
||||
public StableInfo(Storage storage)
|
||||
public StableInfo(TournamentStorage storage)
|
||||
{
|
||||
TournamentStorage tStorage = (TournamentStorage)storage;
|
||||
configStorage = tStorage.AllTournaments;
|
||||
configStorage = storage.AllTournaments;
|
||||
|
||||
if (!configStorage.Exists(config_path))
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user