Remove now unneeded check against file extension

This commit is contained in:
HoLLy
2019-06-19 20:38:43 +02:00
parent 0cb66d522a
commit 8d62ce8967

View File

@ -38,12 +38,10 @@ namespace osu.Game.Scoring
protected override ScoreInfo CreateModel(ArchiveReader archive)
{
string filename = archive?.Filenames.FirstOrDefault(f => f.EndsWith(".osr"));
if (filename == null)
if (archive == null)
return null;
using (var stream = archive.GetStream(filename))
using (var stream = archive.GetStream(archive.Filenames.FirstOrDefault(f => f.EndsWith(".osr"))))
{
try
{