Skip to content

Commit

Permalink
apply spotless
Browse files Browse the repository at this point in the history
Signed-off-by: xinyual <[email protected]>
  • Loading branch information
xinyual committed Nov 19, 2024
1 parent 5c1b3da commit 7cc0a08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import org.opensearch.search.builder.SearchSourceBuilder;

public class AgentModelsSearcher {
private Set<String> relatedModelIdSet;
private final Set<String> relatedModelIdSet;

public AgentModelsSearcher(Map<String, Tool.Factory> toolFactories) {
relatedModelIdSet = new HashSet<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public class DeleteModelTransportAction extends HandledTransportAction<ActionReq

ModelAccessControlHelper modelAccessControlHelper;

AgentModelsSearcher agentModelsSearcher;
final AgentModelsSearcher agentModelsSearcher;

@Inject
public DeleteModelTransportAction(
Expand Down Expand Up @@ -492,7 +492,7 @@ private <T> List<String> findRelevantPipelines(
}

private Boolean searchThroughConfig(Object searchCandidate, String candidateId, String targetModelKey) {
Boolean flag = false;
boolean flag = false;
if (searchCandidate instanceof String
&& Objects.equals(targetModelKey, PIPELINE_TARGET_MODEL_KEY)
&& Objects.equals(candidateId, searchCandidate)) {
Expand Down

0 comments on commit 7cc0a08

Please sign in to comment.