Browse Source

Remove pointless branch on ConfigSource

Change-Id: I6acbc43afc61bd68ebe9bf790585a6f1ce99ae4c
Reviewed-on: http://gerrit.dmdirc.com/652
Automatic-Compile: Gregory Holmes <greg@dmdirc.com>
Reviewed-by: Gregory Holmes <greg@dmdirc.com>
tags/0.6.3b1
Chris Smith 14 years ago
parent
commit
13f6d73a93
1 changed files with 1 additions and 4 deletions
  1. 1
    4
      src/com/dmdirc/config/ConfigSource.java

+ 1
- 4
src/com/dmdirc/config/ConfigSource.java View File

238
                 .startsWith("false:")) {
238
                 .startsWith("false:")) {
239
             return fallbacks.length >= 2 ? getOptionInt(fallbacks[0], fallbacks[1],
239
             return fallbacks.length >= 2 ? getOptionInt(fallbacks[0], fallbacks[1],
240
                     Arrays.copyOfRange(fallbacks, 2, fallbacks.length)) : null;
240
                     Arrays.copyOfRange(fallbacks, 2, fallbacks.length)) : null;
241
-        }
242
-        if (value.startsWith("true:")) {
241
+        } else if (value.startsWith("true:")) {
243
             return Integer.parseInt(getOption(domain, option).trim().substring(
242
             return Integer.parseInt(getOption(domain, option).trim().substring(
244
                     5));
243
                     5));
245
-        } else if (value.startsWith("false:")) {
246
-            return null;
247
         } else {
244
         } else {
248
             return Integer.parseInt(getOption(domain, option).trim());
245
             return Integer.parseInt(getOption(domain, option).trim());
249
         }
246
         }

Loading…
Cancel
Save