1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 03:39:53 +08:00

Remove unused using and fix possible nullref.

This commit is contained in:
naoey
2018-04-04 22:02:45 +05:30
Unverified
parent 7482d5986a
commit ca4299c6fe
2 changed files with 1 additions and 2 deletions
@@ -72,7 +72,7 @@ namespace osu.Game.Graphics.Containers
{
case LinkAction.OpenBeatmap:
// TODO: proper query params handling
if (int.TryParse(linkArgument.Contains('?') ? linkArgument.Split('?')[0] : linkArgument, out int beatmapId))
if (linkArgument != null && int.TryParse(linkArgument.Contains('?') ? linkArgument.Split('?')[0] : linkArgument, out int beatmapId))
game?.ShowBeatmap(beatmapId);
break;
case LinkAction.OpenBeatmapSet:
-1
View File
@@ -18,7 +18,6 @@ using osu.Game.Overlays.BeatmapSet;
using osu.Game.Rulesets;
using osu.Game.Overlays.BeatmapSet.Scores;
using System.Linq;
using osu.Framework.Configuration;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Overlays