From 1aa42a73b102e7d5d452c2953bf367ba4530696b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Tue, 3 Mar 2026 13:38:23 +0100 Subject: [PATCH] Fix code quality --- osu.Game/Screens/SelectV2/RealmPopulatingOnlineLookupSource.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osu.Game/Screens/SelectV2/RealmPopulatingOnlineLookupSource.cs b/osu.Game/Screens/SelectV2/RealmPopulatingOnlineLookupSource.cs index 46f97345c1..1850e6f6ac 100644 --- a/osu.Game/Screens/SelectV2/RealmPopulatingOnlineLookupSource.cs +++ b/osu.Game/Screens/SelectV2/RealmPopulatingOnlineLookupSource.cs @@ -70,7 +70,6 @@ namespace osu.Game.Screens.SelectV2 private static void updateRealmBeatmapSet(Realm r, APIBeatmapSet onlineBeatmapSet) { - var tagsById = (onlineBeatmapSet.RelatedTags ?? []).ToDictionary(t => t.Id); var onlineBeatmaps = onlineBeatmapSet.Beatmaps.ToDictionary(b => b.OnlineID); var dbBeatmapSets = r.All().Where(b => b.OnlineID == onlineBeatmapSet.OnlineID); @@ -104,7 +103,7 @@ namespace osu.Game.Screens.SelectV2 onlineBeatmap.BeatmapSet = onlineBeatmapSet; HashSet userTags = onlineBeatmap.GetTopUserTags(confirmedOnly: true) .Select(t => t.Tag.Name) - .ToHashSet() ?? []; + .ToHashSet(); if (!userTags.SetEquals(dbBeatmap.Metadata.UserTags)) {