Skip to content

Commit a01eb64

Browse files
committed
Pluralize where appropriate
1 parent 79ca07f commit a01eb64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ public void setAddress(@NonNull String serverAddress) {
125125
Optional<ISupportParameter.ChanModes> optional = this.getISupportParameter(ISupportParameter.ChanModes.NAME, ISupportParameter.ChanModes.class);
126126
List<ChannelMode> list = new ArrayList<>();
127127
List<ChannelMode> modes = optional.map(ISupportParameter.ChanModes::getModes).orElse(this.defaultChannelModes);
128-
Set<Character> customModeChar = this.customChannelModes.stream().map(Mode::getChar).collect(Collectors.toSet());
129-
modes.stream().filter(mode -> !customModeChar.contains(mode.getChar())).forEach(list::add);
128+
Set<Character> customModeChars = this.customChannelModes.stream().map(Mode::getChar).collect(Collectors.toSet());
129+
modes.stream().filter(mode -> !customModeChars.contains(mode.getChar())).forEach(list::add);
130130
list.addAll(this.customChannelModes);
131131
return list;
132132
}
@@ -207,8 +207,8 @@ public boolean isValidChannel(@NonNull String name) {
207207
@Override
208208
public @NonNull List<UserMode> getUserModes() {
209209
List<UserMode> list = new ArrayList<>();
210-
Set<Character> customModeChar = this.customUserModes.stream().map(Mode::getChar).collect(Collectors.toSet());
211-
this.userModes.stream().filter(mode -> !customModeChar.contains(mode.getChar())).forEach(list::add);
210+
Set<Character> customModeChars = this.customUserModes.stream().map(Mode::getChar).collect(Collectors.toSet());
211+
this.userModes.stream().filter(mode -> !customModeChars.contains(mode.getChar())).forEach(list::add);
212212
list.addAll(this.customUserModes);
213213
return list;
214214
}

0 commit comments

Comments
 (0)