Skip to content

Commit 2dc9850

Browse files
committed
Minor formatting
1 parent e066a5a commit 2dc9850

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/kitteh/irc/client/library/defaults/element/isupport/DefaultISupportTargMax.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public DefaultISupportTargMax(@NonNull Client client, @NonNull String name, @Nul
5555
if (value != null) {
5656
for (String string : value.split(",")) {
5757
String[] parts = string.split(":");
58-
this.map.put(parts[0], Pair.of(parts[0], parts.length==1?OptionalInt.empty() : OptionalInt.of(Integer.parseInt(parts[1]))));
58+
this.map.put(parts[0], Pair.of(parts[0], parts.length == 1 ? OptionalInt.empty() : OptionalInt.of(Integer.parseInt(parts[1]))));
5959
}
6060
}
6161
}
@@ -67,7 +67,7 @@ public DefaultISupportTargMax(@NonNull Client client, @NonNull String name, @Nul
6767

6868
@Override
6969
public @NonNull OptionalInt getMax(@NonNull String command) {
70-
Pair<String,OptionalInt> pair = this.map.get(command);
70+
Pair<String, OptionalInt> pair = this.map.get(command);
7171
return pair == null ? OptionalInt.empty() : pair.getRight();
7272
}
7373
}

src/main/java/org/kitteh/irc/client/library/defaults/feature/network/NettyConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
236236
}
237237
NettyConnection.this.alive = false;
238238
ClientConnectionEndedEvent event;
239-
if (this.lastCause == null ) {
239+
if (this.lastCause == null) {
240240
event = new ClientConnectionClosedEvent(this.client, this.reconnect, future.cause(), this.lastMessage);
241241
} else {
242242
event = new ClientConnectionFailedEvent(this.client, this.reconnect, this.lastCause);

0 commit comments

Comments
 (0)