1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 21:52:55 +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); var imported = await Import(notification, importTask);
if (!imported.Any())
return imported;
Debug.Assert(imported.Count() == 1); Debug.Assert(imported.Count() == 1);
imported.First().PerformWrite(updated => imported.First().PerformWrite(updated =>