mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Remove unnecessary detach operation
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user