mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 12:25:04 +08:00
Remove now unneeded check against file extension
This commit is contained in:
parent
0cb66d522a
commit
8d62ce8967
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user