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 Aug 7, 2024
1 parent 82dba04 commit cecdf0d
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@ protected void doExecute(Task task, ActionRequest request, ActionListener<Delete
wrappedListener
.onFailure(
new OpenSearchStatusException(
String.format(Locale.ROOT, "Model cannot be deleted in deploying or deployed state. Try undeploy model first then delete, current model state is: %s", mlModelState.name()),
String
.format(
Locale.ROOT,
"Model cannot be deleted in deploying or deployed state. Try undeploy model first then delete, current model state is: %s",
mlModelState.name()
),
RestStatus.BAD_REQUEST
)
);
Expand All @@ -157,7 +162,12 @@ protected void doExecute(Task task, ActionRequest request, ActionListener<Delete
wrappedListener
.onFailure(
new OpenSearchStatusException(
String.format(Locale.ROOT, "Model cannot be deleted in deploying or deployed state. Try undeploy model first then delete, current model state is: %s", mlModelState.name())
String
.format(
Locale.ROOT,
"Model cannot be deleted in deploying or deployed state. Try undeploy model first then delete, current model state is: %s",
mlModelState.name()
),
RestStatus.BAD_REQUEST
)
);
Expand Down

0 comments on commit cecdf0d

Please sign in to comment.