Skip to content

Apache Lucene open-source search software

SOLR-7484: Cleaning up redundant switch cases from the code

Anshum Gupta1276be596780
diff --git a/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java b/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java
index 0c50d809967..55e3b9e8215 100644
--- a/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java
+++ b/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java
@@ -390,14 +390,7 @@ class HttpSolrCall {
writeResponse(solrRsp, responseWriter, reqMethod);
}
return RETURN;
- case FORWARD:
- return FORWARD;
- case PASSTHROUGH:
- return PASSTHROUGH;
- case RETRY:
- return RETRY;
- case RETURN:
- return RETURN;
+ default: return action;
}
} catch (Throwable ex) {
sendError(ex);
@@ -415,9 +408,6 @@ class HttpSolrCall {
return RETURN;
}
- // Otherwise let the webapp handle the request
-
- return Action.PASSTHROUGH;
}
void destroy() {