From 4a9631cec3888778dee09544b0a9cea298acf0ab Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Sun, 27 Jan 2019 09:55:07 -0800 Subject: [PATCH] golint fix (#2504) This PR is a small golint fix: ``` coredns/plugin/test/helpers.go Line 283: warning: redundant if ...; err != nil check, just return error instead. (golint) ``` Signed-off-by: Yong Tang --- plugin/test/helpers.go | 5 +---- 1 file changed, 1 insertion(+), 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.