Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Huo <[email protected]>
  • Loading branch information
penghuo committed Oct 3, 2023
1 parent df1b067 commit 6f8db3e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ public Optional<DataSourceMetadata> getDataSourceMetadata(String datasourceName)
return Optional.empty();
}
// todo, in case docId == datasourceName, could read doc directly.
return searchInDataSourcesIndex(QueryBuilders.termQuery("name.keyword", datasourceName)).stream()
return searchInDataSourcesIndex(QueryBuilders.termQuery("name.keyword", datasourceName))
.stream()
.findFirst()
.map(x -> this.encryptDecryptAuthenticationData(x, false));
}
Expand Down

0 comments on commit 6f8db3e

Please sign in to comment.