simplify loop (#1023)

Signed-off-by: Lehner Florian <dev@der-flo.net>
This commit is contained in:
Florian Lehner 2019-10-05 15:24:46 +02:00 committed by Miek Gieben
parent 1e224ff5de
commit 58a17b97a1
1 changed files with 1 additions and 3 deletions

View File

@ -147,9 +147,7 @@ func axfrTestingSuite(addrstr string) func(*testing.T) {
if msg.Error != nil {
t.Fatal(msg.Error)
}
for _, rr := range msg.RR {
records = append(records, rr)
}
records = append(records, msg.RR...)
}
if len(records) != len(xfrTestData) {