1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 19:03:08 +08:00

Fix scenario where import is expected to be empty

This commit is contained in:
Dean Herbert 2022-07-25 23:59:25 +09:00
parent 9c411c2250
commit d41ac36a69

View File

@ -45,6 +45,9 @@ namespace osu.Game.Beatmaps
{
var imported = await Import(notification, importTask);
if (!imported.Any())
return imported;
Debug.Assert(imported.Count() == 1);
imported.First().PerformWrite(updated =>