Commit 4a9631ce authored by Yong Tang's avatar Yong Tang Committed by Miek Gieben

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: default avatarYong Tang <yong.tang.github@outlook.com>
parent eb85af22
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment