1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

removed redundant comment

This commit is contained in:
Aergwyn 2017-12-07 13:56:37 +01:00
parent 76c09ae59e
commit 1dcbfab18e

View File

@ -37,7 +37,7 @@ namespace osu.Game.Beatmaps
// check local context for metadata so we can reuse duplicates from the same set
var contextMetadata = context.Set<BeatmapMetadata>().Local.SingleOrDefault(e => e.Equals(beatmap.Metadata));
if (contextMetadata != null)
beatmap.Metadata = contextMetadata; // reuse existing
beatmap.Metadata = contextMetadata;
else
context.BeatmapMetadata.Attach(beatmap.Metadata); // adding new to context
}