Skip to content

Commit

Permalink
precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkyle committed Nov 22, 2023
1 parent 36f6862 commit a4b3cc3
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import java.util.Map;
import java.util.Set;


public class TestInferenceServicePlugin extends Plugin implements InferenceServicePlugin {

@Override
Expand Down Expand Up @@ -159,9 +158,7 @@ public void infer(
switch (model.getConfigurations().getTaskType()) {
case SPARSE_EMBEDDING -> {
var results = new ArrayList<TestResults>();
input.forEach(i -> {
results.add(new TestResults("bar"));
});
input.forEach(i -> { results.add(new TestResults("bar")); });
listener.onResponse(results);
}
default -> listener.onFailure(
Expand Down Expand Up @@ -222,9 +219,7 @@ public static TestServiceSettings fromMap(Map<String, Object> map) {
String model = (String) map.remove("model");

if (model == null) {
validationException.addValidationError(
"missing model"
);
validationException.addValidationError("missing model");
}

if (validationException.validationErrors().isEmpty() == false) {
Expand Down

0 comments on commit a4b3cc3

Please sign in to comment.