diff options
author | Samuel Stauffer <samuel@descolada.com> | 2014-03-19 22:27:01 +0100 |
---|---|---|
committer | Samuel Stauffer <samuel@descolada.com> | 2014-03-19 22:27:01 +0100 |
commit | 65bf7be9958662d7881ee992874889a5dbbe6ef5 (patch) | |
tree | 0b39cf05bf792d773f4675195402de0fc095ac55 /search.go | |
parent | Use error instead of *Error (diff) | |
download | ldap-65bf7be9958662d7881ee992874889a5dbbe6ef5.tar ldap-65bf7be9958662d7881ee992874889a5dbbe6ef5.tar.gz ldap-65bf7be9958662d7881ee992874889a5dbbe6ef5.tar.bz2 ldap-65bf7be9958662d7881ee992874889a5dbbe6ef5.tar.lz ldap-65bf7be9958662d7881ee992874889a5dbbe6ef5.tar.xz ldap-65bf7be9958662d7881ee992874889a5dbbe6ef5.tar.zst ldap-65bf7be9958662d7881ee992874889a5dbbe6ef5.zip |
Diffstat (limited to 'search.go')
-rw-r--r-- | search.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -98,17 +98,17 @@ type Entry struct { Attributes []*EntryAttribute } -func (e *Entry) GetAttributeValues(Attribute string) []string { +func (e *Entry) GetAttributeValues(attribute string) []string { for _, attr := range e.Attributes { - if attr.Name == Attribute { + if attr.Name == attribute { return attr.Values } } return []string{} } -func (e *Entry) GetAttributeValue(Attribute string) string { - values := e.GetAttributeValues(Attribute) +func (e *Entry) GetAttributeValue(attribute string) string { + values := e.GetAttributeValues(attribute) if len(values) == 0 { return "" } |