Skip to content

Commit a75516d

Browse files
author
Gitea
committed
Run make fmt
1 parent 9798db1 commit a75516d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

services/auth/source/ldap/source_group_sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
// SyncLdapGroupsToTeams maps LDAP groups to organization and team memberships
14-
func (source *Source) SyncLdapGroupsToTeams(user *user_model.User, ldapTeamAdd map[string][]string, ldapTeamRemove map[string][]string, orgCache map[string]*models.Organization, teamCache map[string]*models.Team) {
14+
func (source *Source) SyncLdapGroupsToTeams(user *user_model.User, ldapTeamAdd, ldapTeamRemove map[string][]string, orgCache map[string]*models.Organization, teamCache map[string]*models.Team) {
1515
var err error
1616
if source.TeamGroupMapRemoval {
1717
// when the user is not a member of configs LDAP group, remove mapped organizations/teams memberships

services/auth/source/ldap/source_search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func checkRestricted(l *ldap.Conn, ls *Source, userDN string) bool {
199199
// List all group memberships of a user
200200
func (ls *Source) listLdapGroupMemberships(l *ldap.Conn, uid string) []string {
201201
var ldapGroups []string
202-
var groupFilter = fmt.Sprintf("(%s=%s)", ls.GroupMemberUID, uid)
202+
groupFilter := fmt.Sprintf("(%s=%s)", ls.GroupMemberUID, uid)
203203
result, err := l.Search(ldap.NewSearchRequest(
204204
ls.GroupDN,
205205
ldap.ScopeWholeSubtree,

0 commit comments

Comments
 (0)