mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:33:01 +08:00
Remove unnecessary detach operation
This commit is contained in:
parent
64fe7d8dd3
commit
4235fb317d
@ -209,7 +209,7 @@ namespace osu.Game.Collections
|
||||
|
||||
string checksum = sr.ReadString();
|
||||
|
||||
var beatmap = beatmaps.QueryBeatmap(b => b.MD5Hash == checksum)?.Detach();
|
||||
var beatmap = beatmaps.QueryBeatmap(b => b.MD5Hash == checksum);
|
||||
if (beatmap != null)
|
||||
collection.Beatmaps.Add(beatmap);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user