contrib/implements: remove some linter noise

Signed-off-by: Sven Anderson <sven@redhat.com>
This commit is contained in:
Sven Anderson 2021-10-07 12:36:06 +09:00 committed by mergify[bot]
parent 0b907cf04f
commit cf77731927
2 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,4 @@
// Package implements is internal
package implements
import (
@ -37,7 +38,6 @@ type goFunction struct {
fullName string
comment string
implementsCFunc string
callsCFunc string
isDeprecated bool
isPreview bool
@ -114,7 +114,7 @@ func (v *visitor) checkCalled(s *ast.SelectorExpr) {
if !ok {
return
}
if "C" == ident.String() {
if ident.String() == "C" {
cname := s.Sel.String()
if ignoreCCalls[cname] {
return

View File

@ -82,7 +82,7 @@ func main() {
if err != nil {
abort(err.Error())
}
defer f.Close()
defer func() { _ = f.Close() }()
rpts = append(rpts, implements.NewJSONReport(o, f))
}
switch {
@ -93,7 +93,7 @@ func main() {
if err != nil {
abort(err.Error())
}
defer f.Close()
defer func() { _ = f.Close() }()
rpts = append(rpts, implements.NewTextReport(o, f))
}
if len(rpts) == 0 {
@ -136,6 +136,6 @@ func main() {
}
}
for _, r := range rpts {
r.Done()
_ = r.Done()
}
}