Skip to content

Commit efa65e1

Browse files
Spotless apply
Signed-off-by: Finn Carroll <carrofin@amazon.com>
1 parent 815d3c5 commit efa65e1

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

plugin/src/main/java/org/opensearch/sql/plugin/SQLPlugin.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,10 @@ protected Object buildJsonObject(ExplainResponse resp) {
263263

264264
@Override
265265
public void onFailure(Exception e) {
266-
RestStatus status = (e instanceof org.opensearch.OpenSearchException osEx)
267-
? osEx.status()
268-
: RestStatus.INTERNAL_SERVER_ERROR;
266+
RestStatus status =
267+
(e instanceof org.opensearch.OpenSearchException osEx)
268+
? osEx.status()
269+
: RestStatus.INTERNAL_SERVER_ERROR;
269270
channel.sendResponse(new BytesRestResponse(status, e.getMessage()));
270271
}
271272
});
@@ -284,9 +285,10 @@ public void onResponse(TransportPPLQueryResponse response) {
284285

285286
@Override
286287
public void onFailure(Exception e) {
287-
RestStatus status = (e instanceof org.opensearch.OpenSearchException osEx)
288-
? osEx.status()
289-
: RestStatus.INTERNAL_SERVER_ERROR;
288+
RestStatus status =
289+
(e instanceof org.opensearch.OpenSearchException osEx)
290+
? osEx.status()
291+
: RestStatus.INTERNAL_SERVER_ERROR;
290292
channel.sendResponse(new BytesRestResponse(status, e.getMessage()));
291293
}
292294
});

0 commit comments

Comments
 (0)