Skip to content

Commit

Permalink
[Improve] Redundant return variables are optimized (#4151)
Browse files Browse the repository at this point in the history
  • Loading branch information
Forus0322 authored Dec 22, 2024
1 parent bcc269f commit 98aa780
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ private NamingEnumeration<SearchResult> getSearchResults(String userId) throws N
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() {
Expand Down

0 comments on commit 98aa780

Please sign in to comment.