Browse Source

Don't reassign params and simplify logic

Change-Id: I0125f179b3f6e5fb44b5fd707a54997695ec8e0a
Reviewed-on: http://gerrit.dmdirc.com/1741
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
tags/0.6.5
Chris Smith 13 years ago
parent
commit
7b4c3865ed
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      src/com/dmdirc/parser/irc/IRCParser.java

+ 2
- 3
src/com/dmdirc/parser/irc/IRCParser.java View File

@@ -965,10 +965,9 @@ public class IRCParser implements SecureParser, EncodingParser, Runnable {
965 965
 
966 966
     /** {@inheritDoc} */
967 967
     @Override
968
-    public IRCChannelInfo getChannel(String channel) {
968
+    public IRCChannelInfo getChannel(final String channel) {
969 969
         synchronized (channelList) {
970
-            channel = getStringConverter().toLowerCase(channel);
971
-            if (channelList.containsKey(channel)) { return channelList.get(channel); } else { return null; }
970
+            return channelList.get(getStringConverter().toLowerCase(channel));
972 971
         }
973 972
     }
974 973
 

Loading…
Cancel
Save