mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 00:43:22 +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)
|
protected override ScoreInfo CreateModel(ArchiveReader archive)
|
||||||
{
|
{
|
||||||
string filename = archive?.Filenames.FirstOrDefault(f => f.EndsWith(".osr"));
|
if (archive == null)
|
||||||
|
|
||||||
if (filename == null)
|
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
using (var stream = archive.GetStream(filename))
|
using (var stream = archive.GetStream(archive.Filenames.FirstOrDefault(f => f.EndsWith(".osr"))))
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user