Skip to content

Commit

Permalink
Fix precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
janhoy committed Oct 17, 2024
1 parent 0364452 commit 9835f06
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions solr/core/src/java/org/apache/solr/cli/StatusTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.io.PrintStream;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.List;
Expand All @@ -40,6 +39,7 @@
import org.apache.solr.client.solrj.request.GenericSolrRequest;
import org.apache.solr.common.params.CommonParams;
import org.apache.solr.common.util.NamedList;
import org.apache.solr.common.util.URLUtil;
import org.noggit.CharArr;
import org.noggit.JSONWriter;

Expand Down Expand Up @@ -110,10 +110,7 @@ public void runImpl(CommandLine cli) throws Exception {
}

if (solrUrl != null) {
try {
new URL(solrUrl);
} catch (Exception e) {
// Added to catch use of -solrUrl option in which case the url would be "olrUrl"
if (!URLUtil.hasScheme(solrUrl)) {
CLIO.err("Invalid URL provided: " + solrUrl);
System.exit(1);
}
Expand Down

0 comments on commit 9835f06

Please sign in to comment.