File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/org/kitteh/irc/client/library/defaults/feature Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments