Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Yaliang Wu <[email protected]>
  • Loading branch information
ylwu-amzn committed Feb 28, 2025
1 parent 252cdff commit bdd7123
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public RestChannelConsumer prepareRequest(RestRequest request, NodeClient client
algorithm = functionName.get().name();
}

if (algorithm != null && functionName != null) {
if (algorithm != null && functionName.isPresent()) {
MLPredictionTaskRequest mlPredictionTaskRequest = getRequest(modelId, functionName.get().name(), algorithm, request);
return channel -> client
.execute(MLPredictionTaskAction.INSTANCE, mlPredictionTaskRequest, new RestToXContentListener<>(channel));
Expand Down

0 comments on commit bdd7123

Please sign in to comment.