diff options
author | 2019-01-27 09:55:07 -0800 | |
---|---|---|
committer | 2019-01-27 17:55:07 +0000 | |
commit | 4a9631cec3888778dee09544b0a9cea298acf0ab (patch) | |
tree | c1603e0171e5501684b32e0fc466d91afe0de48f | |
parent | eb85af2240bbe1bb28a1ffffdbc77146fa28490d (diff) | |
download | coredns-4a9631cec3888778dee09544b0a9cea298acf0ab.tar.gz coredns-4a9631cec3888778dee09544b0a9cea298acf0ab.tar.zst coredns-4a9631cec3888778dee09544b0a9cea298acf0ab.zip |
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 <yong.tang.github@outlook.com>
-rw-r--r-- | plugin/test/helpers.go | 5 |
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. |