1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:07:23 +08:00

Avoid unnecessary casts

This commit is contained in:
Dean Herbert 2021-04-04 21:58:25 +09:00
parent 4ee8224f8b
commit 879b1ab046
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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;