File tree Expand file tree Collapse file tree
plugin/src/main/java/org/opensearch/sql/plugin Expand file tree Collapse file tree Original file line number Diff line number Diff 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 });
You can’t perform that action at this time.
0 commit comments