aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugin/test/helpers.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugin/test/helpers.go b/plugin/test/helpers.go
index c3e8cd368..a74101109 100644
--- a/plugin/test/helpers.go
+++ b/plugin/test/helpers.go
@@ -280,10 +280,7 @@ func SortAndCheck(resp *dns.Msg, tc Case) error {
return err
}
- if err := Section(tc, Extra, resp.Extra); err != nil {
- return err
- }
- return nil
+ return Section(tc, Extra, resp.Extra)
}
// ErrorHandler returns a Handler that returns ServerFailure error when called.