Fix multiple tests via null checks and changing ToLive to Detach

flow
This commit is contained in:
Dean Herbert
2022-01-08 00:40:14 +09:00
parent 13401a8846
commit e74a5022c9
11 changed files with 31 additions and 19 deletions

View File

@ -200,6 +200,7 @@ namespace osu.Game.Beatmaps
/// <param name="query">The query.</param>
/// <returns>The first result for the provided query, or null if no results were found.</returns>
public BeatmapInfo? QueryBeatmap(Expression<Func<BeatmapInfo, bool>> query) => beatmapModelManager.QueryBeatmap(query)?.Detach();
// TODO: move detach to usages?
/// <summary>
/// Saves an <see cref="IBeatmap"/> file against a given <see cref="BeatmapInfo"/>.