Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
Signed-off-by: zane-neo <[email protected]>
  • Loading branch information
zane-neo committed Mar 13, 2024
1 parent fdb129e commit feee4f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.text.StringSubstitutor;
import org.opensearch.core.rest.RestStatus;
import org.opensearch.ml.common.connector.Connector;
import org.opensearch.ml.common.connector.ConnectorAction;
import org.opensearch.ml.common.connector.MLPostProcessFunction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ private void reOrderTensorResponses(Map<Integer, ModelTensors> tensorOutputs) {
// either one fails, we will return a failure response.
OpenSearchStatusException openSearchStatusException = null;
for (Map.Entry<Integer, ModelTensors> entry : sortedMap.entrySet()) {
if (entry.getValue().getStatusCode() < HttpStatus.SC_OK || entry.getValue().getStatusCode() > HttpStatus.SC_MULTIPLE_CHOICES) {
if (entry.getValue().getStatusCode() < HttpStatus.SC_OK
|| entry.getValue().getStatusCode() > HttpStatus.SC_MULTIPLE_CHOICES) {
openSearchStatusException = buildOpenSearchStatusException(entry.getValue());
break;
}
Expand Down

0 comments on commit feee4f1

Please sign in to comment.