From a1b233056b55cc71110e34566d3f18ec519c2677 Mon Sep 17 00:00:00 2001 From: sdburns1998 Date: Sun, 7 Jul 2019 17:54:26 +0200 Subject: [PATCH] profiles: Merge nested if statements --- .../client/plugins/profiles/ProfilesPlugin.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/profiles/ProfilesPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/profiles/ProfilesPlugin.java index 488a511a5f..b79187fa6a 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/profiles/ProfilesPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/profiles/ProfilesPlugin.java @@ -87,14 +87,11 @@ public class ProfilesPlugin extends Plugin @Subscribe private void onConfigChanged(ConfigChanged event) throws Exception { - if (event.getGroup().equals("profiles")) + if (event.getGroup().equals("profiles") && event.getKey().equals("rememberPassword")) { - if (event.getKey().equals("rememberPassword")) - { - panel = injector.getInstance(ProfilesPanel.class); - this.shutDown(); - this.startUp(); - } + panel = injector.getInstance(ProfilesPanel.class); + this.shutDown(); + this.startUp(); } }