From 58a17b97a19f4101cf979e35169548a89333a26b Mon Sep 17 00:00:00 2001 From: Florian Lehner Date: Sat, 5 Oct 2019 15:24:46 +0200 Subject: [PATCH] simplify loop (#1023) Signed-off-by: Lehner Florian --- xfr_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xfr_test.go b/xfr_test.go index 3713f174..3b533d65 100644 --- a/xfr_test.go +++ b/xfr_test.go @@ -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) {