From 82c970455043ca304c33d3c5b116a675445c4da6 Mon Sep 17 00:00:00 2001 From: Ian Lucht <90893791+Ianlucht@users.noreply.github.com> Date: Wed, 29 Jan 2025 08:48:56 -0700 Subject: [PATCH] Update osu.Game/Users/Drawables/ClickableAvatar.cs agatemosu's review change request Co-authored-by: Agatem --- osu.Game/Users/Drawables/ClickableAvatar.cs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/osu.Game/Users/Drawables/ClickableAvatar.cs b/osu.Game/Users/Drawables/ClickableAvatar.cs index 591dc461b9..6a3461cb11 100644 --- a/osu.Game/Users/Drawables/ClickableAvatar.cs +++ b/osu.Game/Users/Drawables/ClickableAvatar.cs @@ -58,17 +58,8 @@ namespace osu.Game.Users.Drawables private void openProfile() { - if (ruleset != null) - { - if (user?.Id > 1 || !string.IsNullOrEmpty(user?.Username)) - { - game?.ShowUser(user, ruleset); - } - } - else if (user?.Id > 1 || !string.IsNullOrEmpty(user?.Username)) - { - game?.ShowUser(user); - } + if (user?.Id > 1 || !string.IsNullOrEmpty(user?.Username)) + game?.ShowUser(user, ruleset); } protected override bool OnClick(ClickEvent e)