Merge branch '1.2'

This commit is contained in:
Matthias Radestock committed 2015-11-02 19:58:37 +00:00
commit 6a238818da
1 file changed
+2 -2
+2 -2
View File
@@ -216,10 +216,10 @@ func (es Entries) lookup(hostname string) Entries {
return es[i : i+j]
}
func (es *Entries) first(f func(*Entry) bool) (*Entry, error) {
func (es Entries) first(f func(*Entry) bool) (*Entry, error) {
es.checkAndPanic()
for _, e := range *es {
for _, e := range es {
if f(&e) {
return &e, nil
}