Skip to content

Commit

Permalink
simplify loop (miekg#1023)
Browse files Browse the repository at this point in the history
Signed-off-by: Lehner Florian <[email protected]>
  • Loading branch information
florianl authored and miekg committed Oct 5, 2019
1 parent 1e224ff commit 58a17b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions xfr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 58a17b9

Please sign in to comment.