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