Skip to content

Commit

Permalink
Spotless apply
Browse files Browse the repository at this point in the history
Signed-off-by: dreamer-89 <[email protected]>
  • Loading branch information
dreamer-89 committed Aug 30, 2023
1 parent a5c6b31 commit 9fc9473
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ public Optional<DataSourceMetadata> getDataSourceMetadata(String datasourceName)
createDataSourcesIndex();
return Optional.empty();
}
return searchInDataSourcesIndex(this.clusterService.state(), QueryBuilders.termQuery("name", datasourceName)).stream()
return searchInDataSourcesIndex(
this.clusterService.state(), QueryBuilders.termQuery("name", datasourceName))
.stream()
.findFirst()
.map(x -> this.encryptDecryptAuthenticationData(x, false));
}
Expand Down Expand Up @@ -218,7 +220,8 @@ private void createDataSourcesIndex() {
}
}

private List<DataSourceMetadata> searchInDataSourcesIndex(ClusterState state, QueryBuilder query) {
private List<DataSourceMetadata> searchInDataSourcesIndex(
ClusterState state, QueryBuilder query) {
SearchRequest searchRequest = new SearchRequest();
searchRequest.indices(DATASOURCE_INDEX_NAME);
SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
Expand Down

0 comments on commit 9fc9473

Please sign in to comment.