diff --git a/Mage.Client/src/main/java/mage/client/util/URLHandler.java b/Mage.Client/src/main/java/mage/client/util/URLHandler.java index 20d05058f60..6208bddbf71 100644 --- a/Mage.Client/src/main/java/mage/client/util/URLHandler.java +++ b/Mage.Client/src/main/java/mage/client/util/URLHandler.java @@ -57,9 +57,7 @@ public class URLHandler { } catch (IOException | URISyntaxException ex) { // do nothing } - } else { - //do nothing - } + } } } }; @@ -76,11 +74,11 @@ public class URLHandler { for (String item : parts) { try { URL url = new URL(item); - // The item is a valid URL + // The item is already a valid URL output = output + "" + url + " "; } catch (MalformedURLException e) { - //The item might still be an URL + //The item might still be a URL if (item.startsWith("www.")) { output = output + "" + item + " "; } else { @@ -103,10 +101,10 @@ public class URLHandler { for (String item : parts) { try { URL url = new URL(item); - // The item is a valid URL + // The item is already a valid URL output = url.toString(); } catch (MalformedURLException e) { - //The item might still be an URL + //The item might still be a URL if (item.startsWith("www.")) { output = "http://" + item; }