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

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