discord: Merge nested if statements
This commit is contained in:
@@ -342,9 +342,7 @@ public class DiscordPlugin extends Plugin
|
||||
{
|
||||
final PartyMember localMember = partyService.getLocalMember();
|
||||
|
||||
if (localMember != null)
|
||||
{
|
||||
if (discordService.getCurrentUser() != null)
|
||||
if (localMember != null && discordService.getCurrentUser() != null)
|
||||
{
|
||||
final DiscordUserInfo userInfo = new DiscordUserInfo(
|
||||
discordService.getCurrentUser().userId,
|
||||
@@ -354,7 +352,6 @@ public class DiscordPlugin extends Plugin
|
||||
wsClient.send(userInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void onUserPart(final UserPart event)
|
||||
|
||||
@@ -46,7 +46,7 @@ import static net.runelite.client.ws.PartyService.PARTY_MAX;
|
||||
class DiscordState
|
||||
{
|
||||
@Data
|
||||
private class EventWithTime
|
||||
private static class EventWithTime
|
||||
{
|
||||
private final DiscordGameEventType type;
|
||||
private final Instant start;
|
||||
|
||||
Reference in New Issue
Block a user