ldap.go: drop else on returned if block
This commit is contained in:
		| @@ -188,14 +188,14 @@ func parseScope(s string) (int, bool) { | ||||
| func (c *ldapConnector) userMatchers() []UserMatcher { | ||||
| 	if len(c.GroupSearch.UserMatchers) > 0 && c.GroupSearch.UserMatchers[0].UserAttr != "" { | ||||
| 		return c.GroupSearch.UserMatchers[:] | ||||
| 	} else { | ||||
| 	} | ||||
| 	 | ||||
| 	return []UserMatcher{ | ||||
| 		{ | ||||
| 			UserAttr:  c.GroupSearch.UserAttr, | ||||
| 			GroupAttr: c.GroupSearch.GroupAttr, | ||||
| 		}, | ||||
| 	} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Open returns an authentication strategy using LDAP. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user