mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 03:42:58 +08:00
Merge pull request #16528 from peppy/remove-detach-collection
Remove unnecessary detach operation
This commit is contained in:
commit
2da8d8a279
@ -209,7 +209,7 @@ namespace osu.Game.Collections
|
|||||||
|
|
||||||
string checksum = sr.ReadString();
|
string checksum = sr.ReadString();
|
||||||
|
|
||||||
var beatmap = beatmaps.QueryBeatmap(b => b.MD5Hash == checksum)?.Detach();
|
var beatmap = beatmaps.QueryBeatmap(b => b.MD5Hash == checksum);
|
||||||
if (beatmap != null)
|
if (beatmap != null)
|
||||||
collection.Beatmaps.Add(beatmap);
|
collection.Beatmaps.Add(beatmap);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user