Remove redundant variable, handle all request failures

This commit is contained in:
naoey
2019-06-19 19:43:09 +05:30
parent 26c32ceeb1
commit 4b46601eae
2 changed files with 16 additions and 14 deletions

View File

@ -8,15 +8,13 @@ namespace osu.Game.Online.API.Requests
public class DownloadBeatmapSetRequest : ArchiveDownloadRequest<BeatmapSetInfo>
{
private readonly bool noVideo;
private readonly BeatmapSetInfo set;
public DownloadBeatmapSetRequest(BeatmapSetInfo set, bool noVideo)
: base(set)
{
this.noVideo = noVideo;
this.set = set;
}
protected override string Target => $@"beatmapsets/{set.OnlineBeatmapSetID}/download{(noVideo ? "?noVideo=1" : "")}";
protected override string Target => $@"beatmapsets/{Model.OnlineBeatmapSetID}/download{(noVideo ? "?noVideo=1" : "")}";
}
}