Skip to content
Snippets Groups Projects
Unverified Commit 6499f5bf authored by batara666's avatar batara666 Committed by GitHub
Browse files

ldap.go: drop else on returned if block

parent 19cd9cc6
No related branches found
No related tags found
No related merge requests found
...@@ -188,13 +188,13 @@ func parseScope(s string) (int, bool) { ...@@ -188,13 +188,13 @@ func parseScope(s string) (int, bool) {
func (c *ldapConnector) userMatchers() []UserMatcher { func (c *ldapConnector) userMatchers() []UserMatcher {
if len(c.GroupSearch.UserMatchers) > 0 && c.GroupSearch.UserMatchers[0].UserAttr != "" { if len(c.GroupSearch.UserMatchers) > 0 && c.GroupSearch.UserMatchers[0].UserAttr != "" {
return c.GroupSearch.UserMatchers[:] return c.GroupSearch.UserMatchers[:]
} else { }
return []UserMatcher{
{ return []UserMatcher{
UserAttr: c.GroupSearch.UserAttr, {
GroupAttr: c.GroupSearch.GroupAttr, UserAttr: c.GroupSearch.UserAttr,
}, GroupAttr: c.GroupSearch.GroupAttr,
} },
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment