mirror of
https://github.com/osukey/osukey.git
synced 2025-05-05 05:37:18 +09:00
Fix scenario where import is expected to be empty
This commit is contained in:
parent
9c411c2250
commit
d41ac36a69
@ -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 =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user