This is an automated email from the ASF dual-hosted git repository.
benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git
The following commit(s) were added to refs/heads/dev by this push:
new 98aa780c5 [Improve] Redundant return variables are optimized (#4151)
98aa780c5 is described below
commit 98aa780c5204eb2d0170ab0e8602dc9fac1aa9b5
Author: Forus <[email protected]>
AuthorDate: Sun Dec 22 12:10:48 2024 +0800
[Improve] Redundant return variables are optimized (#4151)
---
.../apache/streampark/console/system/security/impl/LdapService.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/system/security/impl/LdapService.java
b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/system/security/impl/LdapService.java
index 6c4427cab..8d8e836b3 100644
---
a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/system/security/impl/LdapService.java
+++
b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/system/security/impl/LdapService.java
@@ -109,8 +109,7 @@ public class LdapService {
sc.setReturningAttributes(new String[]{ldapUserIdentifyingAttribute});
sc.setSearchScope(SearchControls.SUBTREE_SCOPE);
EqualsFilter filter = new EqualsFilter(ldapUserIdentifyingAttribute,
userId);
- NamingEnumeration<SearchResult> results = ctx.search(ldapBaseDn,
filter.toString(), sc);
- return results;
+ return ctx.search(ldapBaseDn, filter.toString(), sc);
}
private void renderLdapEnv() {