Browse Source

fine, FINE, i wont repeat code

git-svn-id: http://svn.dmdirc.com/trunk@871 00569f92-eb28-0410-84fd-f71c24880f
tags/0.3
Gregory Holmes 17 years ago
parent
commit
652a52d80c
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      src/uk/org/ownage/dmdirc/BrowserLauncher.java

+ 1
- 3
src/uk/org/ownage/dmdirc/BrowserLauncher.java View File

@@ -51,9 +51,7 @@ public final class BrowserLauncher {
51 51
         }
52 52
         if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {
53 53
             try {
54
-                if (url.startsWith("http://")) {
55
-                    desktop.browse(new URL(url).toURI());
56
-                } else if (url.startsWith("https://")) {
54
+                if (url.startsWith("http://") || url.startsWith("https://")) {
57 55
                     desktop.browse(new URL(url).toURI());
58 56
                 } else {
59 57
                     desktop.browse(new URL("http://" + url).toURI());

Loading…
Cancel
Save