mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:13:21 +08:00
Path.GetExtension() will not get null
This commit is contained in:
parent
229b31520f
commit
0667b83960
@ -20,7 +20,7 @@ namespace osu.Game.Database
|
||||
return Enumerable.Empty<string>();
|
||||
|
||||
return storage.GetFiles(ImportFromStablePath)
|
||||
.Where(p => Importer.HandledExtensions.Any(ext => Path.GetExtension(p)?.Equals(ext, StringComparison.OrdinalIgnoreCase) ?? false))
|
||||
.Where(p => Importer.HandledExtensions.Any(ext => Path.GetExtension(p).Equals(ext, StringComparison.OrdinalIgnoreCase)))
|
||||
.Select(path => storage.GetFullPath(path));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user