mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 19:22:54 +08:00
removed redundant comment
This commit is contained in:
parent
76c09ae59e
commit
1dcbfab18e
@ -37,7 +37,7 @@ namespace osu.Game.Beatmaps
|
|||||||
// check local context for metadata so we can reuse duplicates from the same set
|
// 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));
|
var contextMetadata = context.Set<BeatmapMetadata>().Local.SingleOrDefault(e => e.Equals(beatmap.Metadata));
|
||||||
if (contextMetadata != null)
|
if (contextMetadata != null)
|
||||||
beatmap.Metadata = contextMetadata; // reuse existing
|
beatmap.Metadata = contextMetadata;
|
||||||
else
|
else
|
||||||
context.BeatmapMetadata.Attach(beatmap.Metadata); // adding new to context
|
context.BeatmapMetadata.Attach(beatmap.Metadata); // adding new to context
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user